hughesjr / rpms / tzdata

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