PR 5902: Parse errors

Eric Blake ebb9@email.byu.edu
Tue Mar 12 11:06:00 GMT 2002


Bryce McKinlay wrote:
> 
> Yes, these look fine. Cheers!
> 

FYI: I expanded the test in PR5913 as shown below, and checked it in, as
that was the case that originally led to me filing the PR.

2002-03-12  Eric Blake  <ebb9@email.byu.edu>

	* libjava.compile/PR5913.java: Expand test.

2002-03-11  Eric Blake  <ebb9@email.byu.edu>

	* libjava.compile/PR5902.java: New file.
	* libjava.compile/PR5913.java: New file.
	* libjava.compile/PR5913.xfail: New file.

Index: libjava.compile/PR5913.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.compile/PR5913.java,v
retrieving revision 1.2
diff -u -r1.2 PR5913.java
--- PR5913.java 2002/03/12 07:23:25     1.2
+++ PR5913.java 2002/03/12 07:37:18
@@ -2,6 +2,9 @@
 {
   public static void main(String[] args)
   {
-    System.exit((("" + 1) instanceof String) ? 0 : 1);
+    boolean test1 = ("" + 1) instanceof String;
+    // This also tests literal parsing, as mentioned in PR 5902.
+    boolean test2 = "" + 0x1instanceof String;
+    System.exit((test1 && test2) ? 0 : 1);
   }
 }

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer



More information about the Java-patches mailing list