hughesjr / rpms / tzdata

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