This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR 8415 test case
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 01 Nov 2002 17:12:48 -0700
- Subject: Patch: FYI: PR 8415 test case
- Reply-to: tromey at redhat dot com
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