mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 09:45:26 +00:00
ICU-6683 Include a permission to access sun.util.calendar package for secure test. ICU implementation actually does not access the package directly (using reflection), but IBM Java 6 on Windows disallow the access without this.
X-SVN-Rev: 25268
This commit is contained in:
parent
b6071b1a84
commit
14101daa30
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
//#
|
||||
//#*******************************************************************************
|
||||
//#* Copyright (C) 1997-2007, International Business Machines Corporation and *
|
||||
//#* Copyright (C) 1997-2009, International Business Machines Corporation and *
|
||||
//#* others. All Rights Reserved. *
|
||||
//#*******************************************************************************
|
||||
//#* This is the ant build file for ICU4J. See readme.html for more information.
|
||||
|
@ -28,6 +28,9 @@ grant // codebase "file:${user.dir}/icu4jtests.jar"
|
|||
//for charsets
|
||||
permission java.lang.RuntimePermission "charsetProvider", "read";
|
||||
|
||||
// IBM 1.6 on Windows does not allow to use reflection to access
|
||||
// getDSTSavings in TimeZone implementation class in sun.util.clanedar.
|
||||
permission java.lang.RuntimePermission "accessClassInPackage.sun.util.calendar";
|
||||
};
|
||||
|
||||
// there must be a way for code in one jar file to call code in another jar
|
||||
|
@ -44,4 +47,4 @@ grant codebase "file:${user.dir}/icu4j.jar"
|
|||
{
|
||||
permission java.io.FilePermission "${/}${user.dir}${/}icu4jtests.jar", "read";
|
||||
permission java.io.FilePermission "${/}${user.dir}${/}icu4j-charsets.jar", "read";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue