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

Kestrel fcs_H and I:NLP Exception in construct a new String with Classic VM

    XMLWordPrintable

Details

    • generic
    • generic

    Description


      Tested by Kestrel fcs_H and I with Classic VM on both of Solaris and Windows


      String(byte[] bytes, int offset, int length, String enc)
      makes NullPointerException.

      Exception in thread "main" java.lang.NullPointerException
              at java.lang.ThreadLocal.get(ThreadLocal.java:83)
              at java.lang.String.getBTCConverter(String.java:124)
              at java.lang.String.<init>(String.java:403)
              at ASCIIGoThruTest.compare(ASCIIGoThruTest.java:54)
              at ASCIIGoThruTest.tryfunc(ASCIIGoThruTest.java:42)
              at ASCIIGoThruTest.run(ASCIIGoThruTest.java:25)
              at ASCIIGoThruTest.main(ASCIIGoThruTest.java:18)


      However, with hotspot it can work.


      To reproduce
      1. Extract attached zip file.---ASCIITestCode.zip
      2. Compile them.
      3. Run the program as follows;
         java -classic ASCIIGoThruTest EUCJIS JIS SJIS 8859_1


      In Kestrel fcs_G it can work with both of HotSpot and Classic VM.

      Attachments

        Issue Links

          Activity

            People

              mmcclosksunw Michael Mccloskey (Inactive)
              eishidasunw Etsuko Ishida (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: