Name: mc57594 Date: 01/30/97
1. This is true also for preFCS
2. This was encountered on JDK1.1 preFCS running on Windows 95 "Japanese" Didn't test with Win 95 English. May not reproduce on Win95 English.
2. When source files with Shift-jis characters are being compiled, javac.exe aborts if Shift-jis character (except a space) exists on the 2048 byte boundary (2K from the head of file). If a Shift-jis character does not exist on the 2048 byte boundary, then javac does not encounter any error, and Shift-jis characters elsewhere in the source file are converted correctly to Unicode. The bug is uniquely to the 2048 byte boundary.
3. Error message follows:
java.lang.ArrayIndexOutOfBoundsException:
at sun.io.ByteToCharSJIS.convert(ByteToCharSJIS.java:165)
at
java.io.InputStreamReader.convertInto(InputStreamReader.java:121)
at java.io.InputStreamReader.fill(InputStreamReader.java:165)
at java.io.InputStreamReader.read(InputStreamReader.java:226)
at java.io.BufferedReader.fill(BufferedReader.java:141)
at java.io.BufferedReader.read(BufferedReader.java:158)
at
sun.tools.java.ScannerInputStream.read(ScannerInputStream.java:68)
at sun.tools.java.Scanner.useInputStream(Scanner.java:168)
at sun.tools.java.Scanner.<init>(Scanner.java:153)
at sun.tools.java.Parser.<init>(Parser.java:67)
at sun.tools.javac.BatchParser.<init>(BatchParser.java:69)
at
sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java:202)
at sun.tools.javac.Main.compile(Main.java:261)
at sun.tools.javac.Main.main(Main.java:463)
error: An exception has occurred in the compiler; please file a bug
report (java
###@###.###).
1 error
company - Justsystem Corporation, your licensee , email - ###@###.###
======================================================================
- duplicates
-
JDK-4028098 ByteToCharSJIS.convert throws ArrayIndexOutOfBoundsException
-
- Closed
-