JDK-6313786 : test/java/text/BreakIterator/BreakIteratorTest.java failed in th_TH locale
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2005-08-20
  • Updated: 2010-04-02
  • Resolved: 2005-08-20
Related Reports
Duplicate :  
Relates :  
Description
Regression test test/java/text/BreakIterator/BreakIteratorTest.java failed in th_TH locale
Build used: Mustang b48
            1.4.2, 1.5

The test also failed in 1.5 and 1.4 when locale is set th_TH, the same test passed in other locale, including en_US.UTF-8

same test	failed		passed
----------------------------------------------------------------
                1.4.2, th_TH      1.4, en_US.UTF-8, other locales
                1.5, th_TH      1.5, en_US.UTF-8, other locales
                6.0, th_TH      6.0, en_US.UTF-8, other locales

The exception thrown in 6.0 b48 is as follows:
----------System.out:(15/441)----------
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
---
[????????, ????????]
---
[??, ?, ?, ?, ?, ?, ?, ??, ?, ?, ?, ?, ?, ?]
    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:585)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
	at java.lang.Thread.run(Thread.java:608)

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

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method TestBug4214367
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method TestBug4214367

Not sure why the failure was not seen before, maybe regression test rarely ran on Solaris with th_TH locale

jtr can be found at
http://sqeweb.sfbay/i18n/nightly-results/mustang/i18n_reg_60-i18n_Reg_Sol_10_th-en-2005-08-19-02-25-53-0172/failed.html

Note: this is first time we ran regression test in th_TH locale in DTF test bed