]> granicus.if.org Git - icu/commitdiff
ICU-10484 Fixed a couple of issues reported by secureCheck.
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 21 Jan 2014 15:40:01 +0000 (15:40 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 21 Jan 2014 15:40:01 +0000 (15:40 +0000)
X-SVN-Rev: 34947

icu4j/main/shared/data/security.policy
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/PluralRulesTest.java

index 74c20e7eb58b1b7dc736a4395ac0ac623a49b3a4..05a44915e4186df866124d60bd5713d91a519148 100644 (file)
@@ -1,6 +1,6 @@
 //#
 //#*******************************************************************************
-//#* Copyright (C) 1997-2011, International Business Machines Corporation and    *
+//#* Copyright (C) 1997-2014, International Business Machines Corporation and    *
 //#* others. All Rights Reserved.                                                *
 //#*******************************************************************************
 //#* This is the ant build file for ICU4J.  See readme.html for more information.
@@ -25,6 +25,9 @@ grant
 
     // for testing lenient decimal/group separator parsing
     permission java.util.PropertyPermission "com.ibm.icu.text.DecimalFormat.SkipExtendedSeparatorParsing", "write";
+
+    // for setting the default time zone by the test framework
+    permission java.util.PropertyPermission "user.timezone", "write";
 };
 
 // there must be a way for code in one jar file to call code in another jar
index 1ba67997e11d965739d05445145b88d890624810..486755c916aace217b16fdac3ac007357bfe45a8 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2007-2013, International Business Machines Corporation and
+ * Copyright (C) 2007-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  *******************************************************************************
  */
@@ -52,8 +52,6 @@ import com.ibm.icu.util.ULocale;
  */
 public class PluralRulesTest extends TestFmwk {
 
-    static boolean USE_ALT = System.getProperty("alt_plurals") != null;
-
     PluralRulesFactory factory = PluralRulesFactory.NORMAL;
 
     public static void main(String[] args) throws Exception {