This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] FYI: New test case


I checked in the test case from PR java/12866.

Jeff

2003-11-03  Jeff Sturm  <jsturm@one-point.com>

	PR java/12866:
	* libjava.compile/InnerExcept.java: New File.

Index: libjava.compile/InnerExcept.java
===================================================================
RCS file: libjava.compile/InnerExcept.java
diff -N libjava.compile/InnerExcept.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ libjava.compile/InnerExcept.java	4 Nov 2003 01:50:33 -0000
@@ -0,0 +1,19 @@
+import java.io.*;
+
+// Test case for http://gcc.gnu.org/PR12866
+// From Mark Wielaard
+public class InnerExcept
+{
+  static private void createFile() throws IOException
+  {
+    new File("/dev/null");
+  }
+
+  class Inner
+  {
+    private void m() throws IOException
+    {
+      createFile();
+    }
+  }
+}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]