From: aclement Date: Mon, 26 Apr 2004 09:46:28 +0000 (+0000) Subject: Partial fix for Bugzilla Bug 59397 X-Git-Tag: Root_ajdt_support~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5a3430cbce20dea4de5e4162b2fd3378919d5541;p=aspectj.git Partial fix for Bugzilla Bug 59397 NPE in compiler when using (an unusual) declare warning against a ctor ITD --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java index ca41e2aec..3c0588a39 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java @@ -2212,7 +2212,7 @@ public class BcelShadow extends Shadow { public ISourceLocation getSourceLocation() { int sourceLine = getSourceLine(); - if (sourceLine == 0) { + if (sourceLine == 0 || sourceLine == -1) { // Thread.currentThread().dumpStack(); // System.err.println(this + ": " + range); return getEnclosingClass().getType().getSourceLocation();