summaryrefslogtreecommitdiffstats
path: root/weaver/src
diff options
context:
space:
mode:
authoraclement <aclement>2004-04-26 09:46:28 +0000
committeraclement <aclement>2004-04-26 09:46:28 +0000
commit5a3430cbce20dea4de5e4162b2fd3378919d5541 (patch)
tree5d3362f835bfb1b4b2fcff4867b47357adc5e46b /weaver/src
parentd48a48032c832e261bbfa3dd94e2c9f1cfc5a0a1 (diff)
downloadaspectj-5a3430cbce20dea4de5e4162b2fd3378919d5541.tar.gz
aspectj-5a3430cbce20dea4de5e4162b2fd3378919d5541.zip
Partial fix for Bugzilla Bug 59397
NPE in compiler when using (an unusual) declare warning against a ctor ITD
Diffstat (limited to 'weaver/src')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelShadow.java2
1 files changed, 1 insertions, 1 deletions
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();