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

[test bug] test/java/text/BreakIterator/BreakIteratorTest.java threw misleading exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 6u2
    • core-libs
    • sparc
    • solaris_9

      Build: 6u1b06, 6u2b01 PIT
      Platform: sol. 9
      Locale tested: th (Thai)

      test/java/text/BreakIterator/BreakIteratorTest.java should bypass the test of TestBug4214367 if the tested locale is not Japanese, instead of throwing misleading exception as follows:

      ----------System.out:(15/601)*----------
      BreakIteratorTest {
        TestLineBreakContractions Passed
        TestEmptyString Passed
        TestSentenceInvariants Passed
        TestBug4152416 Passed
        TestLineBreakBasedOnUnicode3_0_0 Passed
        TestBug4153072 Passed
        TestCharacterBreak Passed
        TestBug4214367 {
          Discrepancy between expected result and actual result
      ---
      [\u3042\u3044\u309d\u3042\u309e\u3042\u30fc\u3042, \u30a2\u30a4\u30fd\u30a2\u30fe\u30a2\u30fc\u30a2]
      ---
      [\u3042\u3044, \u309d, \u3042, \u309e, \u3042, \u30fc, \u3042, \u30a2\u30a4, \u30fd, \u30a2, \u30fe, \u30a2, \u30fc, \u30a2]
          Uncaught exception thrown in test method TestBug4214367
      ----------System.err:(18/955)----------
      java.lang.RuntimeException: Uncaught exception thrown in test method TestBug4214367

      at BITestFmwk.err(BITestFmwk.java:173)
      at BITestFmwk.errln(BITestFmwk.java:182)
      at BITestFmwk.run(BITestFmwk.java:126)
      at BreakIteratorTest.main(BreakIteratorTest.java:58)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
      at java.lang.Thread.run(Thread.java:619)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method TestBug4214367

      JavaTest Message: shutting down test

            peytoia Yuka Kamiya (Inactive)
            mtiensunw Minchi Tien (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: