JDK-5099360 : (scanner) Javac doesn't allow unicode escapes at start of programs
Type:Bug
Component:tools
Sub-Component:javac
Affected Version:5.0
Priority:P4
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2004-09-09
Updated:2006-04-18
Resolved:2004-11-06
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
This program does not compile:
BEGIN Broken.java===========
\u0063lass Broken {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
END Broken.java=============
###@###.### 2004-09-08
Comments
CONVERTED DATA
BugTraq+ Release Management Values
COMMIT TO FIX:
dragon
mustang
11-09-2004
SUGGESTED FIX
--- /tmp/geta9454 2004-09-08 22:56:56.452869888 -0700
+++ Scanner.java 2004-09-08 22:55:49.925983512 -0700
@@ -145,7 +145,7 @@
/** The buffer index of the last converted unicode character
*/
- private int unicodeConversionBp = 0;
+ private int unicodeConversionBp = -1;
/** The log to be used for error reporting.
*/
###@###.### 2004-09-08
08-09-2004
EVALUATION
Oops, but it easy to fix.
###@###.### 2004-09-08