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]

Re: PR 5902: Parse errors


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


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