aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-09-18 14:19:15 -0700
committerTor Norbye <tnorbye@google.com>2012-09-18 14:19:15 -0700
commit2e3527410003859ee6bcb3a2971d72bcfdbcc829 (patch)
tree62b70635e6e2bc8daa2318235bfe4966f6b3fa07 /common
parent6184f12fa097e1c5bddfe50700b3b0740c736a5a (diff)
downloadsdk-2e3527410003859ee6bcb3a2971d72bcfdbcc829.zip
sdk-2e3527410003859ee6bcb3a2971d72bcfdbcc829.tar.gz
sdk-2e3527410003859ee6bcb3a2971d72bcfdbcc829.tar.bz2
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
Diffstat (limited to 'common')
-rw-r--r--common/src/com/android/SdkConstants.java1
1 files changed, 1 insertions, 0 deletions
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 = "<init>"; //$NON-NLS-1$
+ public static final String CLASS_CONSTRUCTOR = "<clinit>"; //$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$