JDK-4930708 : (test bugs) Some regression tests fails due to L10N fixes
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,linux,solaris_8
  • CPU: generic,x86,sparc
  • Submitted: 2003-10-01
  • Updated: 2003-11-25
  • Resolved: 2003-11-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b24Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
The following regression tests fail after L10N team's putback.
The test programs need to be updated.

    test/java/text/Collator/DanishTest.java
    test/java/util/Locale/InternationalBAT.java
    test/sun/text/resources/Locale/LocaleDataTest.java

------------------------------------------------------------------------------

The following regression test program also fails due to one of the
L10N fixes. (DateFormat data update for Korean)

    test/sun/text/resources/Format/Bug4395196.java

It may be better to rewrite this test program. This test program cannot
work as expected any longer.

Now, whether this test passes or not depends on when you run it.
For example, if you run this test program on 6:50a.m., it fails.
If you run it on 11:50p.m., it passes. Because the output of DateFormat
with pattern "h:m" happens to equal the output of DateFormat with pattern
"hh:mm" on 11:50p.m.
That's why I was not able to detect this failure when I filed this bug. 
###@###.### 2003-10-08

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b24
14-06-2004

EVALUATION The failure of sun/text/resources/Locale/LocaleDataTest.java was reported as another bug 4933581, I have already fixed it in my ws. ###@###.### 2003-10-07 ###@###.### 2003-10-09 ******** l10n evaluation template - begin *********** Evaluation : Fixing test/sun/text/resources/Locale/LocaleData, test/sun/text/resources/Locale/LocaleDataTest.java and test/sun/text/resources/Format/Bug4395196.java to change the base data for bug 4900884. Fixing test/java/util/Locale/InternationalBAT.java to change the base data for bug 4810032 Fixing test/java/text/Collator/DanishTest.java to change the base data for bug 4174436 sccsdiff info (e.g. sccs diffs -r1.30 1.31 Activator_fr.java): sccs diffs InternationalBAT.java ------- InternationalBAT.java ------- 83c83 < "2001\u5E745\u670810\u65E5 (\u6728\u66DC\u65E5)", --- > "2001\u5E745\u670810\u65E5", // ja_JP 186c186 < { 0x32, 0x30, 0x30, 0x31, (byte) 0x94, 0x4E, 0x35, (byte) 0x8C, (byte) 0x8E, 0x31, 0x30, (byte) 0x93, (byte) 0xFA, 0x20, 0x28, (byte) 0x96, (byte) 0xD8, (byte) 0x97, 0x6A, (byte) 0x93, (byte)0xFA, 0x29}, --- > { 0x32, 0x30, 0x30, 0x31, (byte) 0x94, 0x4E, 0x35, (byte) 0x8C, (byte) 0x8E, 0x31, 0x30, (byte) 0x93, (byte) 0xFA, }, 196,197c196,197 < { 0x32, 0x30, 0x30, 0x31, (byte) 0xC7, (byte) 0xAF, 0x35, (byte) 0xB7, (byte) 0xEE, 0x31, 0x30, (byte) 0xC6, (byte) 0xFC, 0x20, 0x28, (byte) 0xCC, (byte) 0xDA, (byte) 0xCD, (byte) 0xCB, (byte) 0xC6, (byte) 0xFC, 0x29}, < { 0x32, 0x30, 0x30, 0x31, (byte) 0x94, 0x4E, 0x35, (byte) 0x8C, (byte) 0x8E, 0x31, 0x30, (byte) 0x93, (byte) 0xFA, 0x20, 0x28, (byte) 0x96, (byte) 0xD8, (byte) 0x97, 0x6A, (byte) 0x93, (byte) 0xFA, 0x29}, --- > { 0x32, 0x30, 0x30, 0x31, (byte) 0xC7, (byte) 0xAF, 0x35, (byte) 0xB7, (byte) 0xEE, 0x31, 0x30, (byte) 0xC6, (byte) 0xFC, }, > { 0x32, 0x30, 0x30, 0x31, (byte) 0x94, 0x4E, 0x35, (byte) 0x8C, (byte) 0x8E, 0x31, 0x30, (byte) 0x93, (byte) 0xFA, }, sccsdiff -r1.32 -r1.33 SCCS/s.LocaleData ------- LocaleData ------- 2412,2414c2412,2420 < #bug #4215747 < LocaleElements/ko/DateTimePatterns/0=a h'\uc2dc' m'\ubd84' s'\ucd08' z < LocaleElements/ko/DateTimePatterns/1=a h'\uc2dc' m'\ubd84' s'\ucd08' --- > #bug #4215747 - commented out by mfang due to 4900884 > #LocaleElements/ko/DateTimePatterns/0=a h'\uc2dc' m'\ubd84' s'\ucd08' z > #LocaleElements/ko/DateTimePatterns/1=a h'\uc2dc' m'\ubd84' s'\ucd08' > > #bug 4900884 > LocaleElements/ko/DateTimePatterns/0=a h'\uc2dc' mm'\ubd84' ss'\ucd08' z > LocaleElements/ko/DateTimePatterns/1=a h'\uc2dc' mm'\ubd84' ss'\ucd08' > LocaleElements/ko/DateTimePatterns/2=a h:mm:ss > LocaleElements/ko/DateTimePatterns/3=a h:mm sccsdiff -r1.22 -r1.23 SCCS/s.LocaleDataTest.java ------- LocaleDataTest.java ------- 9c9 < * 4209960 4290801 --- > * 4209960 4290801 4900884 sccs diffs DanishTest.java ------- DanishTest.java ------- 71a72 > "A\u00e6RO", 80a82 > "\u00D0ORA", 91a94,95 > "\u0152RVAL", > "OERVAL", 101d104 < "SS", 102a106 > "SS", 110c114 < "\u00FEORVAR\u0110UR", --- > "\u00DEORVAR\u0110UR", sccs diffs Bug4395196.java ------- Bug4395196.java ------- 3c3 < *@bug 4395196 --- > *@bug 4395196 4930708 4900884 22c22 < sdf.applyPattern("yyyy. M. d. a h:m"); --- > sdf.applyPattern("yyyy. M. d. a h:mm"); 25c25 < sdf.applyPattern("yyyy'\ub144' M'\uc6d4' d'\uc77c' '('EE')' a h:m:s"); --- > sdf.applyPattern("yyyy'\ub144' M'\uc6d4' d'\uc77c' '('EE')' a h:mm:ss"); 28c28 < sdf.applyPattern("yyyy. M. d. a h'\uc2dc' m'\ubd84' s'\ucd08'"); --- > sdf.applyPattern("yyyy. M. d. a h'\uc2dc' mm'\ubd84' ss'\ucd08'"); 31c31 < sdf.applyPattern("yy. M. d. a h'\uc2dc' m'\ubd84' s'\ucd08' z"); --- > sdf.applyPattern("yy. M. d. a h'\uc2dc' mm'\ubd84' ss'\ucd08' z"); List file(s) to be delivered : test/java/util/Locale/InternationalBAT.java test/sun/text/resources/Locale/LocaleData test/sun/text/resources/Locale/LocaleDataTest.java test/java/text/Collator/DanishTest.java test/sun/text/resources/Format/Bug4395196.java Target Build : Tiger Additional Info : ******** l10n evaluation template - end***********
11-06-2004