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

java.util.prefs.Preferences removeNode() throws java.lang.InternalError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • x86
    • windows_nt
    • Verified

      Windows Test Case:
      -----------------
      I used removeNode() in Threads case 1:
               throws IllegalStateException as expected.
       
       I used removeNode() in Two JVM case 2:
            throws java.lang.InternalError
        with messages.


       ---------------------case1 thread -------------------------
       N1 node is created Thread01
       N1.put("k","newvalue");
       is called repeatedly
       
       N1 node is created in Thread02
      N1.removeNode() is called
       .
       In Thread01 IllegalStateException is thrown as per the document.

       --------------------------------------case 2 two jvm -------------
       In Test01.java
          N1.node is created
         N1.put("k","newvalue");
          is called repeatedly.
      In Test02.java
          N1.node is created
          N1.removeNode() is called.

      One window java Test01 started
       in Second window java Tst02 started

      In Test01 program java.lang.InternalError:
                              with message is thrown.

            kkladkosunw Konstantin Kladko (Inactive)
            spandeorcl Shantaram Pande (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: