hughesjr / rpms / tzdata

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