hughesjr / rpms / tzdata

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