summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-07 14:34:53 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-07 14:34:53 +0000
commit44fcaed094c04339ba09f22197914463cd92aa69 (patch)
tree1c18a770e3b496c37eb199d56bcba0fed43cf098 /libjava/testsuite/libjava.compile
parentdda067b9b5ccf4b56314d719820288e9789e3885 (diff)
downloadppe42-gcc-44fcaed094c04339ba09f22197914463cd92aa69.tar.gz
ppe42-gcc-44fcaed094c04339ba09f22197914463cd92aa69.zip
2005-07-07 Bryce McKinlay <mckinlay@redhat.com>
PR java/21045 * parse.y (add_exception_to_throws): New function. (purge_unchecked_exceptions): Removed. (get_constructor_super): Renamed from verify_constructor_super. Now returns the super constructor after verification. (java_complete_expand_method): Don't use purge_unchecked_exceptions or save/restore the exception list. (check_thrown_exceptions): Add uncaught exceptions in anonymous class initializers and constructors to the throws clause of the method. 2005-07-07 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.compile/PR21045.java: New test. * testsuite/libjava.jacks/jacks.xfail: Remove 15.9.5.1-exception-1, 15.9.5.1-exception-3, 8.3.2-abrupt-6, 8.3.2-abrupt-7. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101713 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-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) {}
+ }
+}
OpenPOWER on IntegriCloud