From ca1593fda439eef1997ac28568337b52bf32460c Mon Sep 17 00:00:00 2001 From: Ranjit Mathew Date: Thu, 10 Mar 2005 18:57:01 +0000 Subject: re PR java/20312 (No warning on bad method) * testsuite/libjava.compile/PR20312.java: New file. * testsuite/libjava.compile/PR20312.xfail: Likewise. * testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15. From-SVN: r96252 --- libjava/testsuite/libjava.compile/PR20312.java | 8 ++++++++ libjava/testsuite/libjava.compile/PR20312.xfail | 1 + 2 files changed, 9 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR20312.java create mode 100644 libjava/testsuite/libjava.compile/PR20312.xfail (limited to 'libjava/testsuite/libjava.compile') diff --git a/libjava/testsuite/libjava.compile/PR20312.java b/libjava/testsuite/libjava.compile/PR20312.java new file mode 100644 index 0000000..463172b --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR20312.java @@ -0,0 +1,8 @@ +/* Can't throw what the overridden method doesn't. */ +public class PR20312 +{ + public String toString( ) throws java.io.IOException + { + return "SNAFU"; + } +} diff --git a/libjava/testsuite/libjava.compile/PR20312.xfail b/libjava/testsuite/libjava.compile/PR20312.xfail new file mode 100644 index 0000000..e3b083b --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR20312.xfail @@ -0,0 +1 @@ +shouldfail -- cgit v1.1