JDK-6229965 : Testcases for CurrencyFormat and ValidateISo4217 needs to be updated for new Turkish currency
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 5.0u3
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-02-16
  • Updated: 2010-04-05
  • Resolved: 2005-03-03
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.0u3 b05Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Below given automated regression testcases are failing for 1.5.0_03 onwards.
java/util/Currency/ValidateISO4217.java and 
java/text/Format/CurrencyFormat.java

These are failing because Turkey has introduced a new currency, the New 
Turkish Lira, on January 1, 2005. The ISO 4217 currency code is TRY, 
the currency symbol YTL, and it's subdivided into 100 New Kuruu015F. 
The currency data and the Turkish locale data need to be updated for
this change.

I think these updates are already made in JDK but the testcases are not updated.This is evident from the "more" information provided through JTreg when these tests were run


Steps to REPRODUCE:
====================
1.Install JDK 1.5.0_03 onwards.
3.Try to run these above mentioned tests through JTreg these testcases are available from location
/net/shiva.sfbay/test/MyTestArea/JDK1.4.2/workspace_142/test/java/util/Currency/ValidateISO4217.java
/net/shiva.sfbay/test/MyTestArea/JDK1.4.2/workspace_142/test/java/text/Format/CurrencyFormat.java

Below exception is thrown and the testcase is failing 

--------------------------------------------------------
For CurrencyFormat.java below error was seen
--------------------------------------------------------
Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Wrong currency symbol for locale tr_TR, expected: TL, got: YTL

--------------------------------------------------------
For ValidateISO4217.java below error was seen
--------------------------------------------------------
Error: [TR:Turkey] expected: TRL, got: TRY
java.lang.RuntimeException: Failed: Validation ISO 4217 data
	at ValidateISO4217.main(ValidateISO4217.java:78)
	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:595)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed: Validation ISO 4217 data
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed: Validation ISO 4217 data

###@###.### 2005-2-16 16:57:18 GMT

Comments
EVALUATION Testcases need to be modified due to bug fix # 5101540. ###@###.### 2005-2-16 19:01:01 GMT New tests had been checked into 5.0u1 when this fix was put back. ###@###.### 2005-2-16 19:03:49 GMT These testcases from /net/jdk.sfbay/export/disk7/jdk5.0u1/j2se/test/ /net/jdk.sfbay/export/disk7/jdk5.0u2/j2se/test/ /net/jdk.sfbay/export/disk7/jdk5.0u3/j2se/test/ are failing. Seems like somehow new tests/fix is not integrated into master j2se workspace. ###@###.### 2005-2-16 23:23:00 GMT
16-02-2005