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

(prefs) Preferences.systemRoot is no longer created when it doesn't exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs

      FULL PRODUCT VERSION :
      java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
      Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      glibc-2.2.4-29
      Linux 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686
      redhat-release

      A DESCRIPTION OF THE PROBLEM :
      Preferences.systemRoot is no longer created when it doesn't exist
      (It was working in 1.4.1)

      Calling java with java.util.prefs.systemRoot set no longer creates this directory and puts the system preferences in there. Instead it is ignoring this value and putting the System Preferences in the place where java is installed.

      Calling java with java.util.prefs.userRoot set still creates the directory and puts the user prefences in there.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      import java.util.prefs.*;

      public class Test {
        public static void main(String[] args) {
          Preferences.systemRoot().put("Test Key", "Test Value");
        }
      }


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the directory to be created and the system preferences to be put there
      ACTUAL -
      the directory is created under where java is installed instead

      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2005-03-02 19:33:55 GMT

            Unassigned Unassigned
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: