aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR21045.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.compile/PR21045.java')
-rw-r--r--libjava/testsuite/libjava.compile/PR21045.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR21045.java b/libjava/testsuite/libjava.compile/PR21045.java
new file mode 100644
index 00000000000..3d34ee1f304
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR21045.java
@@ -0,0 +1,11 @@
+public class PR21045
+{
+ class InnerBase {
+ InnerBase() throws Exception, NullPointerException {}
+ }
+ void method() {
+ try {
+ InnerBase obj = new InnerBase() {};
+ } catch (Exception e) {}
+ }
+}