hughesjr / rpms / tzdata

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