hughesjr / rpms / tzdata

Forked from rpms/tzdata 2 years ago
Clone
b66a74
--- sun/util/calendar/LocalGregorianCalendar.java.keiths	2007-09-07 14:48:19.000000000 -0700
b66a74
+++ sun/util/calendar/LocalGregorianCalendar.java	2007-09-07 14:52:58.000000000 -0700
b66a74
@@ -120,8 +120,7 @@ public class LocalGregorianCalendar exte
b66a74
     static LocalGregorianCalendar getLocalGregorianCalendar(String name) {
b66a74
 	Properties calendarProps = null;
b66a74
 	try {
b66a74
-	    String homeDir = (String) AccessController.doPrivileged(
b66a74
-				new sun.security.action.GetPropertyAction("java.home"));
b66a74
+  	    String homeDir = (String) System.getProperty("java.home");
b66a74
 	    final String fname = homeDir + File.separator + "lib" + File.separator
b66a74
 				 + "calendars.properties";
b66a74
 	    calendarProps = (Properties) AccessController.doPrivileged(new PrivilegedExceptionAction() {
b66a74
--- sun/util/calendar/ZoneInfoFile.java.keiths	2007-09-07 14:54:58.000000000 -0700
b66a74
+++ sun/util/calendar/ZoneInfoFile.java	2007-09-07 14:55:36.000000000 -0700
b66a74
@@ -1021,8 +1021,7 @@ public class ZoneInfoFile {
b66a74
 	byte[] buffer = null;
b66a74
 
b66a74
 	try {
b66a74
-	    String zi_dir = (String) AccessController.doPrivileged(
b66a74
-			        new sun.security.action.GetPropertyAction("user.zoneinfo.dir"));
b66a74
+	    String zi_dir = (String) System.getProperty("user.zoneinfo.dir");
b66a74
 	    File dir = null;
b66a74
 	    if (zi_dir != null)
b66a74
 	      dir = new File(zi_dir);
b66a74
@@ -1035,8 +1034,7 @@ public class ZoneInfoFile {
b66a74
 	    }
b66a74
 
b66a74
 	    if (dir == null) {
b66a74
-	      String homeDir = (String) AccessController.doPrivileged(
b66a74
-				new sun.security.action.GetPropertyAction("java.home"));
b66a74
+	      String homeDir = (String) System.getProperty("java.home");
b66a74
 	      zi_dir = homeDir + File.separator + "lib" + File.separator
b66a74
 		+ "zi";
b66a74
 	    }