This reinstates the use of Classpath's SystemProperties rather than System.getProperty in RuntimeMXBeanImpl. It was originally in there (hence the dangling import) but seems to have got lost when the properties were changed to those already in existance in some of the VMs.
The problem was illustrated by the Mauve tests I just committed.
Without this chance, we can't call isBootClassPathSupported()
without throwing an erroneous security exception in cases
where a security manager blocks property access.
Changelog:
2006-06-24 Andrew John Hughes <[EMAIL PROTECTED]>
* gnu/java/lang/management/RuntimeMXBeanImpl.java:
(isBootClassPathSupported()): Use SystemProperties
rather than System.getProperty.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: gnu/java/lang/management/RuntimeMXBeanImpl.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/gnu/java/lang/management/RuntimeMXBeanImpl.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 RuntimeMXBeanImpl.java
--- gnu/java/lang/management/RuntimeMXBeanImpl.java 11 Jun 2006 21:57:15
-0000 1.1
+++ gnu/java/lang/management/RuntimeMXBeanImpl.java 24 Jun 2006 20:41:48
-0000
@@ -176,9 +176,9 @@ public final class RuntimeMXBeanImpl
{
if (bootClassPath == null)
{
- bootClassPath = System.getProperty(JAVA_BOOT_CLASS_PATH);
+ bootClassPath = SystemProperties.getProperty(JAVA_BOOT_CLASS_PATH);
if (bootClassPath == null)
- bootClassPath = System.getProperty(SUN_BOOT_CLASS_PATH);
+ bootClassPath = SystemProperties.getProperty(SUN_BOOT_CLASS_PATH);
if (bootClassPath == null)
bootClassPathSupported = false;
}
signature.asc
Description: Digital signature
