Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080330

(cs) Charset.availableCharsets failing with NPE on several platforms

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Backports

        Description

        These tests:
        java/nio/charset/Charset/AvailableCharsetNames.java
        java/nio/charset/Charset/NIOCharsetAvailabilityTest.java
        java/nio/charset/spi/basic.sh
        sun/nio/cs/DecoderOverflow.java
        sun/nio/cs/EncodingNothing.java
        sun/nio/cs/FindASCIICodingBugs.java
        sun/nio/cs/FindASCIIRangeCodingBugs.java
        sun/nio/cs/FindASCIIReplBugs.java
        sun/nio/cs/FindCanEncodeBugs.java
        sun/nio/cs/FindDecoderBugs.java
        sun/nio/cs/FindEncoderBugs.java
        sun/nio/cs/FindOneCharEncoderBugs.java
        sun/nio/cs/ISO8859x.java
        sun/nio/cs/MalformedSurrogates.java
        sun/nio/cs/StreamEncoderOut.java
        sun/nio/cs/TestCompoundTest.java
        sun/nio/cs/TestStringCoding.java

        all fail with same stack trace:
        java.lang.NullPointerException
        at java.nio.charset.Charset.put(Charset.java:540)
        at java.nio.charset.Charset.access$200(Charset.java:271)
        at java.nio.charset.Charset$3.run(Charset.java:581)
        at java.nio.charset.Charset$3.run(Charset.java:573)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.nio.charset.Charset.availableCharsets(Charset.java:572)
        at FindASCIICodingBugs.main(FindASCIICodingBugs.java:55)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:502)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
        at java.lang.Thread.run(Thread.java:745)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alanb Alan Bateman
                  Reporter:
                  ssides Steve Sides
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: