hughesjr / rpms / tzdata

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