This is the mail archive of the java-patches@sources.redhat.com 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]

Patch: new test case


I'm checking this in.  It adds a test case that shows a compiler
failure.  If you compile abstr.java to bytecodes and then try to
compile from bytecodes, gcj will fail.  (I have a compiler patch.)

2000-08-31  Tom Tromey  <tromey@cygnus.com>

	* libjava.compile/abstr.xfail: New file.
	* libjava.compile/abstr.java: New file.

Tom

Index: abstr.java
===================================================================
RCS file: abstr.java
diff -N abstr.java
--- /dev/null	Tue May  5 13:32:27 1998
+++ abstr.java	Thu Aug 31 17:11:47 2000
@@ -0,0 +1,14 @@
+// This fails to compile from bytecode for some versions of the compiler.
+
+interface foo
+{
+  public void start ();
+}
+
+public abstract class abstr implements foo
+{
+  public void doit ()
+  {
+    start ();
+  }
+}
Index: abstr.xfail
===================================================================
RCS file: abstr.xfail
diff -N abstr.xfail
--- /dev/null	Tue May  5 13:32:27 1998
+++ abstr.xfail	Thu Aug 31 17:11:47 2000
@@ -0,0 +1 @@
+no-link

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