From 5a3430cbce20dea4de5e4162b2fd3378919d5541 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 26 Apr 2004 09:46:28 +0000 Subject: [PATCH] Partial fix for Bugzilla Bug 59397 NPE in compiler when using (an unusual) declare warning against a ctor ITD --- weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5