JDK-7064270 : java/text/Format/DateFormat/WeekDateTest.java fails on OEL5.6 hi_IN.UTF-8
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_oracle_5.6
  • CPU: generic
  • Submitted: 2011-07-08
  • Updated: 2013-07-16
  • Resolved: 2013-06-07
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.
JDK 8
8 b96Fixed
Related Reports
Relates :  
Description
java/text/Format/DateFormat/WeekDateTest.java fails on OEL5.6 with locale hi_IN.UTF-8

Test info:
# uname -a
Linux OEL5u6x86 2.6.18-238.el5 #1 SMP Tue Jan 4 15:24:05 EST 2011 i686 i686 i386 GNU/Linux
# cat /etc/*release
Enterprise Linux Enterprise Linux Server release 5.6 (Carthage)
Oracle Linux Server release 5.6
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
# ./java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

#section:main
----------messages:(3/123)----------
command: main WeekDateTest
reason: Assumed action based on file name: run main WeekDateTest 
elapsed time (seconds): 0.134
----------System.out:(0/0)----------
----------System.err:(14/905)*----------
java.lang.RuntimeException: format: got=\u0968\u0966\u0966\u096a-W\u096b\u0969-\u096c, expecetd=2004-W53-6
	at WeekDateTest.formatTest(WeekDateTest.java:99)
	at WeekDateTest.main(WeekDateTest.java:84)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:78)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.RuntimeException: format: got=\u0968\u0966\u0966\u096a-W\u096b\u0969-\u096c, expecetd=2004-W53-6
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: format: got=    -W  - , expecetd=2004-W53-6
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: format: got=    -W  - , expecetd=2004-W53-6

test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: format: got=    -W  - , expecetd=2004-W53-6

Attached WeekDateTest.jtr for your reference.

Comments
Verified in b97 on OEL6u4
16-07-2013

Could you please help verify?
01-07-2013

Verify fixed in PIT Request for 8 b96.
21-06-2013

Specify Locale.US for creating SimpleDateFormats.
07-06-2013

EVALUATION The test needs to check non-ASCII digits in particular locales.
08-07-2011