Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1266553

java_lang tests destroy System properties

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      generic

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            egilbertsunw Eric Gilbertson (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: