[2970] in java-interest
"\\" bug
daemon@ATHENA.MIT.EDU (David Forster)
Tue Oct 24 16:07:46 1995
Date: Tue, 24 Oct 1995 10:10:48 -0500
To: java-interest@java.Eng.Sun.COM
From: mentor@io.org (David Forster)
Here's a neat one (running on Solaris):
typetest.java:28: Invalid escape character.
System.out.println("a is \\u1161");
^
1 error
Yes, the compiler really is complaining about the "\\u". It does not
complain if the string is either "\u1161" or "\\ u1161" (note space). My
guess is that the scanner reads the \u1161, converts it to Unicode, and
then reparses the string for some obscure reason, but I don't have access
to the Beta code. This is not a problem in Alpha, BTW.
Cheers,
David Forster <br><a href="http://www.io.org/~mentor">
Mentor Software Solutions </a><br>
+1 905 832 4837 <br>
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com