diff options
author | jhugunin <jhugunin> | 2003-04-22 17:55:13 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-04-22 17:55:13 +0000 |
commit | 0a8dbdeed13fe79ddfd7a291e2b45b50b9a90579 (patch) | |
tree | 296eb9f5aad3f8f3e3b3507d637529e928b2e0dd /tests/bugs | |
parent | fefd4559fb4a9eefcf4528526ad2448b9a6e3489 (diff) | |
download | aspectj-0a8dbdeed13fe79ddfd7a291e2b45b50b9a90579.tar.gz aspectj-0a8dbdeed13fe79ddfd7a291e2b45b50b9a90579.zip |
test and fix for Bugzilla Bug 36564
Internal compiler error
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/tjpStaticPart/Exceptions.java | 18 | ||||
-rw-r--r-- | tests/bugs/tjpStaticPart/Test.java | 14 |
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs/tjpStaticPart/Exceptions.java b/tests/bugs/tjpStaticPart/Exceptions.java new file mode 100644 index 000000000..056443e8b --- /dev/null +++ b/tests/bugs/tjpStaticPart/Exceptions.java @@ -0,0 +1,18 @@ +package tjpStaticPart; + +import java.io.*; + +import org.aspectj.lang.*; + +public aspect Exceptions { + + pointcut exceptionMethods () : + call(java.io.*.new(..) throws FileNotFoundException); + + Object around () throws FileNotFoundException : exceptionMethods() && !within(Exceptions) { + System.err.println("before: " + thisJoinPoint.getStaticPart()); + Object obj = proceed(); + System.err.println("after: " + thisJoinPoint.getStaticPart()); + return obj; + } +}
\ No newline at end of file diff --git a/tests/bugs/tjpStaticPart/Test.java b/tests/bugs/tjpStaticPart/Test.java new file mode 100644 index 000000000..1438698f5 --- /dev/null +++ b/tests/bugs/tjpStaticPart/Test.java @@ -0,0 +1,14 @@ +package tjpStaticPart; + +import java.io.*; + +public class Test { + + public static void main(String[] args) throws Exception{ + try { + FileInputStream in = new FileInputStream("file-does-not-exist"); + } catch (FileNotFoundException e) { + } + + } +} |