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

Test has old currency for Cyprus and Malta

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Regression test suite, for 5.0u15-rev-b11
        j2se/java/util/Currency/ValidateISO4217.java Failed. It was current, But test has <Passed.> on previous update
        This test tested Currency for different countries, and supposed that Cyprys and Malta has own currency, but now, and in jdk5.0u15-rev-b11 supposed that currency for Cyprys and Malta is EUR. Test should be changed according to today situation of currency.

        Header of test:
        /*
         * @test 1.4 05/09/02
         * @bug 4819436 4942982 5104960
         * @summary Validate ISO 4217 data for Currency class.
         */

        To check you can compile and run such code:
        import java.io.*;
        import java.text.*;
        import java.util.*;


        public class validate{

            public static void main(String[] args) throws Exception {
        System.out.println("What test need:");
        System.out.println("//country=MT currencyCode=MTL digits=2 index=331");
        System.out.println("//country=CY currencyCode=CYP digits=2 index=76");

        System.out.println("What java has:");
                Locale loc = new Locale("", "MT");
                Currency currency = Currency.getInstance(loc);
        System.out.println("currencyCode for MT = " + currency.getCurrencyCode());
        loc = new Locale("", "CY");
                currency = Currency.getInstance(loc);
        System.out.println("currencyCode for CY = " + currency.getCurrencyCode());
            }
        }

        What produced with this code:
        /*

        What test need:
        //country=MT currencyCode=MTL digits=2 index=331
        //country=CY currencyCode=CYP digits=2 index=76
        What java has:
        currencyCode for MT = EUR
        currencyCode for CY = EUR

        */

        So MTL and CYP should be changed to EUR

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asaha Abhijit Saha
                  Reporter:
                  ikobzaresunw Ivan Kobzarev (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: