re PR java/20312 (No warning on bad method)
authorRanjit Mathew <rmathew@hotmail.com>
Thu, 10 Mar 2005 18:57:01 +0000 (18:57 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Thu, 10 Mar 2005 18:57:01 +0000 (18:57 +0000)
* 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/ChangeLog
libjava/testsuite/libjava.compile/PR20312.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR20312.xfail [new file with mode: 0644]
libjava/testsuite/libjava.jacks/jacks.xfail

index f62317f..b74f0ed 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-10  Ranjit Mathew  <rmathew@hotmail.com>
+
+       * testsuite/libjava.compile/PR20312.java: New file.
+       * testsuite/libjava.compile/PR20312.xfail: Likewise.
+       * testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15.
+
 2005-03-09  Andrew Haley  <aph@redhat.com>
 
        * gnu/java/nio/channels/FileChannelImpl.java (smallTransferFrom):
diff --git a/libjava/testsuite/libjava.compile/PR20312.java b/libjava/testsuite/libjava.compile/PR20312.java
new file mode 100644 (file)
index 0000000..463172b
--- /dev/null
@@ -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 (file)
index 0000000..e3b083b
--- /dev/null
@@ -0,0 +1 @@
+shouldfail
index 908eb43..8e7e2ae 100644 (file)
 9.1.1-in-interface-9
 9.1.2-supertype-1
 9.1.3-body-5
-9.2-implicit-15
 9.2-implicit-18
 9.2-implicit-19
 9.2-implicit-2