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

TEST_BUG: sun/nio/cs/MalformedSurrogates.java fails intermittently

XMLWordPrintable

        TESTFAIL:java/lang/ref/MalformedSurrogates.java

        The test should be updated as it would fail if the property "file.encoding" and default charset are UTF-16 or UTF-32.
        Below is an example if set file.encoding=UTF-16

        $ java -Dfile.encoding=UTF-16 -cp . MalformedSurrogates
        ??Testing string conversion...
        ??16
        [0]=??=-2
        [1]=??=-1
        [2]==0
        [3]=c=99
        [4]=??=-1
        [5]=??=-3
        [6]=??=-1
        [7]=??=-3
        [8]==0
        [9]=e=101
        [10]==0
        [11]=f=102
        [12]==0
        [13]=g=103
        [14]==0
        [15]=h=104
        Exception in thread "main" java.lang.Exception: Bad string conversion for bad surrogate
        at MalformedSurrogates.main(MalformedSurrogates.java:54)

              ewang Eric Wang (Inactive)
              ewang Eric Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: