Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6229965

Testcases for CurrencyFormat and ValidateISo4217 needs to be updated for new Turkish currency

XMLWordPrintable

    • b05
    • generic
    • generic

      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

            asaha Abhijit Saha
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: