8165592: Fix module dependencies for sun/text/* tests

Reviewed-by: naoto
This commit is contained in:
Sergei Kovalev 2016-09-09 10:58:05 -07:00
parent 97ed09e075
commit 44d69dd31b
15 changed files with 92 additions and 60 deletions

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,11 +24,13 @@
/*
* @test
* @bug 4248694
* @modules jdk.localedata
* @summary updating collation tables for icelandic
*/
import java.text.*;
import java.util.*;
import java.text.Collator;
import java.util.Arrays;
import java.util.Locale;
public class Bug4248694 {

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,11 +24,13 @@
/*
* @test
* @bug 4804273
* @modules jdk.localedata
* @summary updating collation tables for swedish
*/
import java.text.*;
import java.util.*;
import java.text.Collator;
import java.util.Arrays;
import java.util.Locale;
public class Bug4804273 {

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,11 +24,13 @@
/*
* @test
* @bug 6755060
* @modules jdk.localedata
* @summary updating collation tables for thai to make it consistent with CLDR 1.9
*/
import java.text.*;
import java.util.*;
import java.text.Collator;
import java.util.Arrays;
import java.util.Locale;
public class Bug6755060 {

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,15 +22,18 @@
*/
/*
*@test
*@bug 4395196 4930708 4900884 4890240 8008577
*@summary verify the ko DateFormat
*@run main/othervm -Djava.locale.providers=JRE,SPI Bug4395196
*/
* @test
* @bug 4395196 4930708 4900884 4890240 8008577
* @modules jdk.localedata
* @summary verify the ko DateFormat
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug4395196
*/
import java.io.*;
import java.text.*;
import java.util.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public class Bug4395196
{

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,14 +22,16 @@
*/
/*
*@test
*@bug 4442855
*@summary verify the era's translation for tradition chinese
* @test
* @bug 4442855
* @modules jdk.localedata
* @summary verify the era's translation for tradition chinese
*/
import java.io.*;
import java.util.*;
import java.text.*;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public class Bug4442855
{

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,10 +24,12 @@
/*
* @test
* @bug 4621320
* @modules jdk.localedata
* @summary Verify that Ukrainian month name is correct.
*/
import java.text.*;
import java.util.*;
import java.text.DateFormatSymbols;
import java.util.Locale;
public class Bug4621320 {

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,10 +22,11 @@
*/
/*
*@test
*@bug 4651568 8008577
*@summary Verifies the currency pattern for pt_BR locale
*@run main/othervm -Djava.locale.providers=JRE,SPI Bug4651568
* @test
* @bug 4651568 8008577
* @modules jdk.localedata
* @summary Verifies the currency pattern for pt_BR locale
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug4651568
*/
import java.text.DecimalFormat;

@ -22,15 +22,17 @@
*/
/*
*@test
*@bug 4762201
*@summary verify the zh_CN full time pattern (and other time patterns)
*@run main/othervm -Djava.locale.providers=COMPAT,SPI Bug4762201
*/
* @test
* @bug 4762201
* @modules jdk.localedata
* @summary verify the zh_CN full time pattern (and other time patterns)
* @run main/othervm -Djava.locale.providers=COMPAT,SPI Bug4762201
*/
import java.io.*;
import java.text.*;
import java.util.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class Bug4762201
{

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/*
* @test %i%
* @bug 4807540 8008577
* @modules jdk.localedata
* @summary updating dateformat for sl_SI
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug4807540
*/

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,14 +22,16 @@
*/
/*
*@test
*@bug 4810032 8008577
*@summary verify the ja full time pattern parsing
* @test
* @bug 4810032 8008577
* @modules jdk.localedata
* @summary verify the ja full time pattern parsing
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug4810032
*/
import java.text.*;
import java.util.*;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.Locale;
public class Bug4810032
{

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,9 +22,10 @@
*/
/*
*@test
*@bug 4994312 8008577
*@summary verify the German locale will accept localized pattern chars 't' and 'u'.
* @test
* @bug 4994312 8008577
* @modules jdk.localedata
* @summary verify the German locale will accept localized pattern chars 't' and 'u'.
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug4994312
*/

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/*
* @test
* @bug 5096553 8008577
* @modules jdk.localedata
* @summary updating dateformat for da_DK
* following resources:
* http://oss.software.ibm.com/cvs/icu/~checkout~/locale/common/main/da.xml

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/*
* @test
* @bug 8008577 8037343
* @modules jdk.localedata
* @summary updating dateformat for es_DO
* @run main/othervm -Djava.locale.providers=JRE,SPI Bug8037343
*/

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,7 @@
/*
* @test
* @bug 8074791
* @modules jdk.localedata
* @summary Make sure that Finnish month names are correct in formatted text.
*/
@ -32,7 +33,7 @@ import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
import static java.text.DateFormat.*;
import static java.text.DateFormat.LONG;
import static java.util.Calendar.JANUARY;
public class Bug8074791 {

@ -40,6 +40,7 @@
* 8145136
* @summary Verify locale data
* @modules java.base/sun.util.resources
* @modules jdk.localedata
* @run main LocaleDataTest
* @run main LocaleDataTest -cldr
*
@ -145,12 +146,20 @@
* this test against the new version of the data.
*/
import java.io.*;
import java.text.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilterReader;
import java.io.FilterWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.Writer;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.ResourceBundle.Control;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import sun.util.resources.LocaleData;
public class LocaleDataTest