diff options
author | aclement <aclement> | 2004-08-02 13:43:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-02 13:43:43 +0000 |
commit | 7f19ab47a3df5327c6246420354089d1db1c765f (patch) | |
tree | 79d1f7a2e5846953314175e3a8680d45bf6dfb97 /tests/bugs | |
parent | 9aed31d18e3848c72c6963dc3a6ee4661a79add9 (diff) | |
download | aspectj-7f19ab47a3df5327c6246420354089d1db1c765f.tar.gz aspectj-7f19ab47a3df5327c6246420354089d1db1c765f.zip |
Fix for Bugzilla Bug 67774
Nullpointer-exception in pointcuts using withincode() clause
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/WithincodeNPE01.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs/WithincodeNPE01.java b/tests/bugs/WithincodeNPE01.java new file mode 100644 index 000000000..8e7accb23 --- /dev/null +++ b/tests/bugs/WithincodeNPE01.java @@ -0,0 +1,13 @@ +aspect B { + public A.new(String s) { } + public void A.foo() { int i = 1; } + + declare warning: withincode(void main(..)): "X"; // Would NPE without the fix for PR67774 + + declare warning: withincode(A.new(String)): "In String ctor"; + +} + +class A { + private final static String name = A.class.getName(); +}
\ No newline at end of file |