JDK-6538338 : [test bug] test/java/text/BreakIterator/BreakIteratorTest.java threw misleading exceptions
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 6u2
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2007-03-23
  • Updated: 2010-07-29
  • Resolved: 2007-03-28
Related Reports
Duplicate :  
Description
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

Comments
EVALUATION This is a duplicate of 4743558.
28-03-2007

EVALUATION BreakIterator has only two types of resources: for th locale and for other locales. The test case needs to be skipped in th locale.
24-03-2007