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

java/nio/Buffer/Chars.java, testcases seems all pass but jtreg/testng failed with java.lang.AssertionError

    Details

      Backports

        Description

        TESTFAIL:java/nio/Buffer/Chars.java

        java/nio/Buffer/Chars.java
        testcases seems all passed, but jtreg/testng met java.lang.AssertionError

        jtregVersion=jtreg 4.1 fcs b07
        and testng is the one coming with jtreg: jtreg\lib\testng.jar

        ----------System.out:(95/6751)----------
        [TestNG] Running:
          java/nio/Buffer/Chars.java

        java.nio.HeapCharBuffer position=267, limit=750
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@57656d50): success
        java.nio.HeapCharBuffer position=0, limit=483
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@58581f1): success
        java.nio.HeapCharBuffer position=267, limit=750
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@78c05f8e): success
        java.nio.HeapCharBufferR position=267, limit=750
        test Chars.testChars("java.nio.HeapCharBufferR", java.nio.HeapCharBufferR@37bdb26e): success
        java.nio.HeapCharBuffer position=199, limit=405
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@543c79c7): success
        java.nio.HeapCharBuffer position=43, limit=549
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@61ab9ec8): success
        java.nio.HeapCharBufferR position=218, limit=864
        test Chars.testChars("java.nio.HeapCharBufferR", java.nio.HeapCharBufferR@2b14127f): success
        java.nio.HeapCharBuffer position=206, limit=627
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@5643f3fd): success
        java.nio.HeapCharBuffer position=0, limit=421
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@4c1cf41b): success
        java.nio.HeapCharBuffer position=206, limit=627
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@75b677f0): success
        java.nio.HeapCharBufferR position=206, limit=627
        test Chars.testChars("java.nio.HeapCharBufferR", java.nio.HeapCharBufferR@1df915a1): success
        java.nio.HeapCharBuffer position=166, limit=239
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@7a885724): success
        java.nio.HeapCharBuffer position=187, limit=495
        test Chars.testChars("java.nio.HeapCharBuffer", java.nio.HeapCharBuffer@6d3f39de): success
        java.nio.HeapCharBufferR position=152, limit=489
        test Chars.testChars("java.nio.HeapCharBufferR", java.nio.HeapCharBufferR@5485bbf6): success
        java.nio.ByteBufferAsCharBufferB position=107, limit=635
        test Chars.testChars("java.nio.ByteBufferAsCharBufferB", java.nio.ByteBufferAsCharBufferB@a89cb3): success
        java.nio.ByteBufferAsCharBufferB position=0, limit=528
        test Chars.testChars("java.nio.ByteBufferAsCharBufferB", java.nio.ByteBufferAsCharBufferB@857542): success
        java.nio.ByteBufferAsCharBufferB position=107, limit=635
        test Chars.testChars("java.nio.ByteBufferAsCharBufferB", java.nio.ByteBufferAsCharBufferB@68370afd): success
        java.nio.ByteBufferAsCharBufferRB position=107, limit=635
        test Chars.testChars("java.nio.ByteBufferAsCharBufferRB", java.nio.ByteBufferAsCharBufferRB@66397f0b): success
        java.nio.ByteBufferAsCharBufferB position=150, limit=495
        test Chars.testChars("java.nio.ByteBufferAsCharBufferB", java.nio.ByteBufferAsCharBufferB@97d4017): success
        java.nio.ByteBufferAsCharBufferB position=323, limit=750
        test Chars.testChars("java.nio.ByteBufferAsCharBufferB", java.nio.ByteBufferAsCharBufferB@6c0f5b): success
        java.nio.ByteBufferAsCharBufferRB position=176, limit=761
        test Chars.testChars("java.nio.ByteBufferAsCharBufferRB", java.nio.ByteBufferAsCharBufferRB@5441c922): success
        java.nio.ByteBufferAsCharBufferL position=148, limit=752
        test Chars.testChars("java.nio.ByteBufferAsCharBufferL", java.nio.ByteBufferAsCharBufferL@1e7bbf74): success
        java.nio.ByteBufferAsCharBufferL position=0, limit=604
        test Chars.testChars("java.nio.ByteBufferAsCharBufferL", java.nio.ByteBufferAsCharBufferL@96a83fb): success
        java.nio.ByteBufferAsCharBufferL position=148, limit=752
        test Chars.testChars("java.nio.ByteBufferAsCharBufferL", java.nio.ByteBufferAsCharBufferL@5f38a3b2): success
        java.nio.ByteBufferAsCharBufferRL position=148, limit=752
        test Chars.testChars("java.nio.ByteBufferAsCharBufferRL", java.nio.ByteBufferAsCharBufferRL@13fa8428): success
        java.nio.ByteBufferAsCharBufferL position=222, limit=422
        test Chars.testChars("java.nio.ByteBufferAsCharBufferL", java.nio.ByteBufferAsCharBufferL@4c818458): success
        java.nio.ByteBufferAsCharBufferL position=197, limit=635
        test Chars.testChars("java.nio.ByteBufferAsCharBufferL", java.nio.ByteBufferAsCharBufferL@508e7b37): success
        java.nio.ByteBufferAsCharBufferRL position=81, limit=735
        test Chars.testChars("java.nio.ByteBufferAsCharBufferRL", java.nio.ByteBufferAsCharBufferRL@32b11e16): success
        java.nio.DirectCharBufferS position=19, limit=866
        test Chars.testChars("java.nio.DirectCharBufferS", java.nio.DirectCharBufferS@156217e1): success
        java.nio.DirectCharBufferS position=0, limit=847
        test Chars.testChars("java.nio.DirectCharBufferS", java.nio.DirectCharBufferS@4a147bdf): success
        java.nio.DirectCharBufferS position=19, limit=866
        test Chars.testChars("java.nio.DirectCharBufferS", java.nio.DirectCharBufferS@4df62c8c): success
        java.nio.DirectCharBufferRS position=19, limit=866
        test Chars.testChars("java.nio.DirectCharBufferRS", java.nio.DirectCharBufferRS@28e59276): success
        java.nio.DirectCharBufferS position=410, limit=789
        test Chars.testChars("java.nio.DirectCharBufferS", java.nio.DirectCharBufferS@6ba101fb): success
        java.nio.DirectCharBufferS position=78, limit=886
        test Chars.testChars("java.nio.DirectCharBufferS", java.nio.DirectCharBufferS@187a461b): success
        java.nio.DirectCharBufferRS position=311, limit=695
        test Chars.testChars("java.nio.DirectCharBufferRS", java.nio.DirectCharBufferRS@12ff508f): success
        java.nio.DirectCharBufferU position=401, limit=690
        test Chars.testChars("java.nio.DirectCharBufferU", java.nio.DirectCharBufferU@425e8ae): success
        java.nio.DirectCharBufferU position=0, limit=289
        test Chars.testChars("java.nio.DirectCharBufferU", java.nio.DirectCharBufferU@ca82870): success
        java.nio.DirectCharBufferU position=401, limit=690
        test Chars.testChars("java.nio.DirectCharBufferU", java.nio.DirectCharBufferU@408e9b89): success
        java.nio.DirectCharBufferRU position=401, limit=690
        test Chars.testChars("java.nio.DirectCharBufferRU", java.nio.DirectCharBufferRU@3296b911): success
        java.nio.DirectCharBufferU position=1, limit=163
        test Chars.testChars("java.nio.DirectCharBufferU", java.nio.DirectCharBufferU@4603d5c4): success
        java.nio.DirectCharBufferU position=274, limit=523
        test Chars.testChars("java.nio.DirectCharBufferU", java.nio.DirectCharBufferU@393b31da): success
        java.nio.DirectCharBufferRU position=227, limit=615
        test Chars.testChars("java.nio.DirectCharBufferRU", java.nio.DirectCharBufferRU@39251bee): success
        java.nio.StringCharBuffer position=0, limit=227
        test Chars.testChars("java.nio.StringCharBuffer", java.nio.StringCharBuffer@75f7081a): success

        ===============================================
        java/nio/Buffer/Chars.java
        Total tests run: 43, Failures: 0, Skips: 0
        ===============================================

        ----------System.err:(24/1391)----------
        java.lang.AssertionError: 8192
        at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:273)
        at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
        at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
        at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
        at java.io.BufferedWriter.write(BufferedWriter.java:230)
        at java.io.Writer.write(Writer.java:157)
        at org.testng.reporters.FileStringBuffer.toWriter(FileStringBuffer.java:70)
        at org.testng.reporters.XMLStringBuffer.toWriter(XMLStringBuffer.java:358)
        at org.testng.internal.Utils.writeUtf8File(Utils.java:111)
        at org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:66)
        at org.testng.TestNG.generateReports(TestNG.java:1115)
        at org.testng.TestNG.run(TestNG.java:1074)
        at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:161)
        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:483)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746)
        at java.lang.Thread.run(Thread.java:744)

        JavaTest Message: Test threw exception: java.lang.AssertionError
        JavaTest Message: shutting down test

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sherman Xueming Shen
                  Reporter:
                  amlu Amy Lu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  14 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: