-
Bug
-
Resolution: Duplicate
-
P2
-
9, 10
-
generic
-
linux
$ export LC_ALL=ja_JP.UTF-8
$ mkdir てすと
$ ls
jdk-9.0.4 てすと
$ cd てすと
$ export LC_ALL=ja_JP.eucJP
$ ../jdk-9.0.4/bin/java -version
Error occurred during initialization of VM
java.lang.ExceptionInInitializerError
at java.lang.Integer.valueOf(java.base/Integer.java:1048)
at
java.nio.charset.CoderResult$Cache.get(java.base/CoderResult.java:203)
at
java.nio.charset.CoderResult$Cache.access$200(java.base/CoderResult.java:194)
at
java.nio.charset.CoderResult.unmappableForLength(java.base/CoderResult.java:25
5)
at
sun.nio.cs.EUC_JP$Decoder.decodeArrayLoop(java.base/EUC_JP.java:154)
at sun.nio.cs.EUC_JP$Decoder.decodeLoop(java.base/EUC_JP.java:217)
at
java.nio.charset.CharsetDecoder.decode(java.base/CharsetDecoder.java:578)
at
java.lang.StringCoding$StringDecoder.decode(java.base/StringCoding.java:211)
at java.lang.StringCoding.decode(java.base/StringCoding.java:263)
at java.lang.String.<init>(java.base/String.java:465)
at java.lang.String.<init>(java.base/String.java:535)
at java.lang.System.initProperties(java.base/Native Method)
at java.lang.System.initPhase1(java.base/System.java:1933)
Caused by: java.lang.IllegalStateException: Not yet initialized
at jdk.internal.misc.VM.getSavedProperty(java.base/VM.java:144)
at
java.lang.Integer$IntegerCache.<clinit>(java.base/Integer.java:1006)
at java.lang.Integer.valueOf(java.base/Integer.java:1048)
at
java.nio.charset.CoderResult$Cache.get(java.base/CoderResult.java:203)
at
java.nio.charset.CoderResult$Cache.access$200(java.base/CoderResult.java:194)
at
java.nio.charset.CoderResult.unmappableForLength(java.base/CoderResult.java:25
5)
at
sun.nio.cs.EUC_JP$Decoder.decodeArrayLoop(java.base/EUC_JP.java:154)
at sun.nio.cs.EUC_JP$Decoder.decodeLoop(java.base/EUC_JP.java:217)
at
java.nio.charset.CharsetDecoder.decode(java.base/CharsetDecoder.java:578)
at
java.lang.StringCoding$StringDecoder.decode(java.base/StringCoding.java:211)
at java.lang.StringCoding.decode(java.base/StringCoding.java:263)
at java.lang.String.<init>(java.base/String.java:465)
at java.lang.String.<init>(java.base/String.java:535)
at java.lang.System.initProperties(java.base/Native Method)
at java.lang.System.initPhase1(java.base/System.java:1933)
$ mkdir てすと
$ ls
jdk-9.0.4 てすと
$ cd てすと
$ export LC_ALL=ja_JP.eucJP
$ ../jdk-9.0.4/bin/java -version
Error occurred during initialization of VM
java.lang.ExceptionInInitializerError
at java.lang.Integer.valueOf(java.base/Integer.java:1048)
at
java.nio.charset.CoderResult$Cache.get(java.base/CoderResult.java:203)
at
java.nio.charset.CoderResult$Cache.access$200(java.base/CoderResult.java:194)
at
java.nio.charset.CoderResult.unmappableForLength(java.base/CoderResult.java:25
5)
at
sun.nio.cs.EUC_JP$Decoder.decodeArrayLoop(java.base/EUC_JP.java:154)
at sun.nio.cs.EUC_JP$Decoder.decodeLoop(java.base/EUC_JP.java:217)
at
java.nio.charset.CharsetDecoder.decode(java.base/CharsetDecoder.java:578)
at
java.lang.StringCoding$StringDecoder.decode(java.base/StringCoding.java:211)
at java.lang.StringCoding.decode(java.base/StringCoding.java:263)
at java.lang.String.<init>(java.base/String.java:465)
at java.lang.String.<init>(java.base/String.java:535)
at java.lang.System.initProperties(java.base/Native Method)
at java.lang.System.initPhase1(java.base/System.java:1933)
Caused by: java.lang.IllegalStateException: Not yet initialized
at jdk.internal.misc.VM.getSavedProperty(java.base/VM.java:144)
at
java.lang.Integer$IntegerCache.<clinit>(java.base/Integer.java:1006)
at java.lang.Integer.valueOf(java.base/Integer.java:1048)
at
java.nio.charset.CoderResult$Cache.get(java.base/CoderResult.java:203)
at
java.nio.charset.CoderResult$Cache.access$200(java.base/CoderResult.java:194)
at
java.nio.charset.CoderResult.unmappableForLength(java.base/CoderResult.java:25
5)
at
sun.nio.cs.EUC_JP$Decoder.decodeArrayLoop(java.base/EUC_JP.java:154)
at sun.nio.cs.EUC_JP$Decoder.decodeLoop(java.base/EUC_JP.java:217)
at
java.nio.charset.CharsetDecoder.decode(java.base/CharsetDecoder.java:578)
at
java.lang.StringCoding$StringDecoder.decode(java.base/StringCoding.java:211)
at java.lang.StringCoding.decode(java.base/StringCoding.java:263)
at java.lang.String.<init>(java.base/String.java:465)
at java.lang.String.<init>(java.base/String.java:535)
at java.lang.System.initProperties(java.base/Native Method)
at java.lang.System.initPhase1(java.base/System.java:1933)
- duplicates
-
JDK-8187653 Lock in CoderResult.Cache becomes performance bottleneck
- Resolved