From 2e3527410003859ee6bcb3a2971d72bcfdbcc829 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Tue, 18 Sep 2012 14:19:15 -0700 Subject: Improvements to stacktrace handler for constructors This changeset improves the SourceRevealer for certain types of stacktraces: (1) Constructors. If your class initializes fields using code, these are logically grouped into the constructor, but the linenumbers do not fit the constructor source range. Before this CL, this would cause the revealer to show the constructor method rather than the field initialization line. (2) Class initializers. If you clicked on a class initializer method, the IDE would throw an NPE. There's now some special handling to deal with these. Change-Id: Ibb3b7dcf13a69018f75fd12648d1f6b5c45625cc --- common/src/com/android/SdkConstants.java | 1 + 1 file changed, 1 insertion(+) (limited to 'common/src/com/android') diff --git a/common/src/com/android/SdkConstants.java b/common/src/com/android/SdkConstants.java index 1e1d14f..1aa3853 100644 --- a/common/src/com/android/SdkConstants.java +++ b/common/src/com/android/SdkConstants.java @@ -957,6 +957,7 @@ public final class SdkConstants { // Class Names public static final String CONSTRUCTOR_NAME = ""; //$NON-NLS-1$ + public static final String CLASS_CONSTRUCTOR = ""; //$NON-NLS-1$ public static final String FRAGMENT = "android/app/Fragment"; //$NON-NLS-1$ public static final String FRAGMENT_V4 = "android/support/v4/app/Fragment"; //$NON-NLS-1$ public static final String ANDROID_APP_ACTIVITY = "android/app/Activity"; //$NON-NLS-1$ -- cgit v1.1