Blame SOURCES/rh1648645-java_access_bridge_loading_java_version_privileged_tck.patch

60df80
--- java-access-bridge-1.22.0/bridge/org/GNOME/Accessibility/JavaBridge.java.orig	2008-05-22 11:27:00.000000000 -0400
60df80
+++ java-access-bridge-1.22.0/bridge/org/GNOME/Accessibility/JavaBridge.java	2008-05-22 11:28:02.000000000 -0400
60df80
@@ -34,6 +34,9 @@
60df80
 import javax.accessibility.AccessibleRole;
60df80
 import javax.accessibility.AccessibleText;
60df80
 import javax.accessibility.AccessibleEditableText;
60df80
+import java.security.PrivilegedAction;
60df80
+import java.security.AccessController;
60df80
+
60df80
 
60df80
 public class JavaBridge {
60df80
 
60df80
@@ -332,7 +335,11 @@
60df80
 			System.err.println ("Java Accessibility Bridge for GNOME loaded.\n");
60df80
 
60df80
 		// Not sure what kind of arguments should be sent to ORB
60df80
-		String vm_rev = System.getProperty("java.version");
60df80
+		String vm_rev = (String) AccessController.doPrivileged(new PrivilegedAction() {
60df80
+			public java.lang.Object run() {
60df80
+				return System.getProperty("java.version");
60df80
+			}
60df80
+		});	
60df80
 
60df80
 		if (vm_rev.compareTo("1.4.0") < 0) {
60df80
 			System.err.println("WARNING: Java Accessibility Bridge " +