diff options
Diffstat (limited to 'tests/bugs/SofteningTooMuch.java')
-rw-r--r-- | tests/bugs/SofteningTooMuch.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs/SofteningTooMuch.java b/tests/bugs/SofteningTooMuch.java new file mode 100644 index 000000000..164adb24c --- /dev/null +++ b/tests/bugs/SofteningTooMuch.java @@ -0,0 +1,15 @@ + +// pr 48522 + +public class SofteningTooMuch { + public static void main(String args[]) { + throw new Exception("should be a compiler error here"); + } +} + +class FooException extends Exception {} + +aspect ExcPolicy { + declare soft: FooException: execution(* SofteningTooMuch.*(..)); +} + |