-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.0
-
sparc
-
generic
Several of the java_lang tests destroy the System properties. This
is very bad, and causes undefined behaviour for many JDK APIs (including
Kona).
An example of this is from java_lang/System/SetPropertiesTests.java:
Properties props = new Properties();
props.put( "test.prop.1", "First test property" );
props.put( "test.prop.2", "Second test property" );
System.setProperties( props );
No effort is made to restore the System properties to its original state,
so all properties, including "impl.prefix" are lost.
Looking at the System.java class, you can see that many documented
properties are guaranteed to be available during the life of the system.
sritchie -- 4 Sep 96
is very bad, and causes undefined behaviour for many JDK APIs (including
Kona).
An example of this is from java_lang/System/SetPropertiesTests.java:
Properties props = new Properties();
props.put( "test.prop.1", "First test property" );
props.put( "test.prop.2", "Second test property" );
System.setProperties( props );
No effort is made to restore the System properties to its original state,
so all properties, including "impl.prefix" are lost.
Looking at the System.java class, you can see that many documented
properties are guaranteed to be available during the life of the system.
sritchie -- 4 Sep 96