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: PR 8415 test case


I'm checking this in.

This is a test case for PR 8415.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	For PR java/8415:
	* libjava.lang/pr8415.java: New file.
	* libjava.lang/pr8415.out: New file.

Index: libjava.lang/pr8415.java
===================================================================
RCS file: libjava.lang/pr8415.java
diff -N libjava.lang/pr8415.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ libjava.lang/pr8415.java 2 Nov 2002 00:18:57 -0000
@@ -0,0 +1,15 @@
+import java.lang.reflect.*;
+public class pr8415
+{
+  public static void meth () throws NullPointerException
+  {
+    throw new NullPointerException();
+  }
+
+  public static void main(String[] args) throws Throwable
+  {
+    Class k = pr8415.class;
+    Method m = k.getMethod ("meth", new Class[0]);
+    System.out.println(m);
+  }
+}
Index: libjava.lang/pr8415.out
===================================================================
RCS file: libjava.lang/pr8415.out
diff -N libjava.lang/pr8415.out
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ libjava.lang/pr8415.out 2 Nov 2002 00:18:57 -0000
@@ -0,0 +1 @@
+public static void pr8415.meth() throws java.lang.NullPointerException


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