-
Bug
-
Resolution: Fixed
-
P3
-
1.1.6, 1.2.0
-
b01
-
generic, x86, sparc
-
generic, solaris_2.5.1, windows_95, windows_nt
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2019610 | 1.2.0 | Brian Beck | P3 | Resolved | Fixed | 1.2beta4 |
JDK1.1.6(K) or JDK1.2b3(L) comes with test code for regression test under directory ./test in source distribution.
STEPS:
$ setenv LANG ja
$ cd test/java/intltest
$ javac BreakIteratorTest.java
java.lang.StringIndexOutOfBoundsException: String index out of range: -125
at java.lang.String.charAt(String.java:392)
at sun.io.ByteToCharEUC_JP.getUnicode(ByteToCharEUC_JP.java:72)
at sun.io.ByteToCharEUC_JP.convert(ByteToCharEUC_JP.java:150)
at java.io.InputStreamReader.convertInto(InputStreamReader.java:123)
at java.io.InputStreamReader.fill(InputStreamReader.java:171)
at java.io.InputStreamReader.read(InputStreamReader.java:229)
at java.io.Reader.read(Reader.java:103)
at sun.tools.java.ScannerInputReader.read(ScannerInputReader.java:129)
at sun.tools.java.Scanner.scanIdentifier(Scanner.java:735)
at sun.tools.java.Scanner.xscan(Scanner.java:1094)
at sun.tools.java.Scanner.scan(Scanner.java:784)
at sun.tools.java.Parser.scan(Parser.java:2024)
at sun.tools.java.Parser.expect(Parser.java:290)
at sun.tools.java.Parser.parseStatement(Parser.java:1282)
at sun.tools.java.Parser.parseBlockStatement(Parser.java:1312)
at sun.tools.java.Parser.parseStatement(Parser.java:908)
at sun.tools.java.Parser.parseField(Parser.java:1640)
at sun.tools.java.Parser.parseClassBody(Parser.java:1872)
at sun.tools.java.Parser.parseNamedClass(Parser.java:1808)
at sun.tools.java.Parser.parseClass(Parser.java:1761)
at sun.tools.java.Parser.parseFile(Parser.java:1968)
at sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java:343)
at sun.tools.javac.Main.compile(Main.java:330)
at sun.tools.javac.Main.main(Main.java:571)
-----
This does not happen on "C" Locale.
koushi.takahashi@japan 1998-03-20
STEPS:
$ setenv LANG ja
$ cd test/java/intltest
$ javac BreakIteratorTest.java
java.lang.StringIndexOutOfBoundsException: String index out of range: -125
at java.lang.String.charAt(String.java:392)
at sun.io.ByteToCharEUC_JP.getUnicode(ByteToCharEUC_JP.java:72)
at sun.io.ByteToCharEUC_JP.convert(ByteToCharEUC_JP.java:150)
at java.io.InputStreamReader.convertInto(InputStreamReader.java:123)
at java.io.InputStreamReader.fill(InputStreamReader.java:171)
at java.io.InputStreamReader.read(InputStreamReader.java:229)
at java.io.Reader.read(Reader.java:103)
at sun.tools.java.ScannerInputReader.read(ScannerInputReader.java:129)
at sun.tools.java.Scanner.scanIdentifier(Scanner.java:735)
at sun.tools.java.Scanner.xscan(Scanner.java:1094)
at sun.tools.java.Scanner.scan(Scanner.java:784)
at sun.tools.java.Parser.scan(Parser.java:2024)
at sun.tools.java.Parser.expect(Parser.java:290)
at sun.tools.java.Parser.parseStatement(Parser.java:1282)
at sun.tools.java.Parser.parseBlockStatement(Parser.java:1312)
at sun.tools.java.Parser.parseStatement(Parser.java:908)
at sun.tools.java.Parser.parseField(Parser.java:1640)
at sun.tools.java.Parser.parseClassBody(Parser.java:1872)
at sun.tools.java.Parser.parseNamedClass(Parser.java:1808)
at sun.tools.java.Parser.parseClass(Parser.java:1761)
at sun.tools.java.Parser.parseFile(Parser.java:1968)
at sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java:343)
at sun.tools.javac.Main.compile(Main.java:330)
at sun.tools.javac.Main.main(Main.java:571)
-----
This does not happen on "C" Locale.
koushi.takahashi@japan 1998-03-20
- backported by
-
JDK-2019610 compile test code under /test throws StringIndexOutOfBoundsException.
- Resolved
- duplicates
-
JDK-4146970 Exception occurs when instantiating String object by EUC encoder.
- Closed
-
JDK-4103067 javac raises StringIndexOutOfBoundsException to meet malformed
- Closed
-
JDK-4113395 ByteToCharEUC_JP code converter throws StringIndexOutOfBoundsException
- Closed
- relates to
-
JDK-4180433 Regression test sun/io/Converter/TestIllegalEUC_JP.java failing
- Resolved