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

Typographical Error in java.util.prefs.FileSystemPrefences.java

XMLWordPrintable

    • b40
    • sparc
    • solaris_9

      Name: rmT116609 Date: 02/20/2003


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


      FULL OPERATING SYSTEM VERSION :
      SunOS skyhawk 5.8 Generic_108528-14 sun4u sparc


      A DESCRIPTION OF THE PROBLEM :
      java.lang.SecurityException: Could not lockSystem prefs.Lock
      file access denied.
              at
      java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPreferences.java:926)


      Source code (from an earlier version) looks like:
       throw new SecurityException("Could not lock" +
                  (isUserNode()? "User prefs." : "System prefs.") +
                   "Lock file access denied.");

      and should be changed to
       throw new SecurityException("Could not lock " +
                  (isUserNode()? "User prefs. " : "System prefs. ") +
                   "Lock file access denied.");

        To change it from "Could not lockSystem prefs.Lock file
      access denied" to "Could not lock System prefs. Lock file
      access denied"

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Check source for java.util.prefs.FileSystemPreferences
      line 926

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 181574)
      ======================================================================

            ilittlesunw Ian Little (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: