Blame SOURCES/java-1.6.0-openjdk-java-access-bridge-tck.patch

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