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

REGRESSION: Lock.java is failing with 1.4.2_10-b01 and passing with 1.4.2_09-b05

XMLWordPrintable

    • b01
    • b02
    • x86
    • linux_suse_sles_9

      Lock.java is failing with 1.4.2_10-b01 and passing with 1.4.2_09-b05

      Testcase Location: /net/urts071.india/export6/testSuites/Regression/workspace_142/test/java/nio/channels/FileChannel/Lock.java


      1. How to Reproduce with 1.4.2_10-b01:
      --------------------------------------

      1. Install the jdk and follow following steps

        <Local Jdk Location>/j2sdk1.4.2_10/bin/java -version
        
      java version "1.4.2_10-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-ea-b01)
      Java HotSpot(TM) Client VM (build 1.4.2_10-ea-b01, mixed mode)

      2. Copy Lock.java from Regression testbase location to local machine.

      3. Compile the Lock.java
         
         <local jdk Location>/j2sdk1.4.2_10/bin/javac Lock.java

      4. Run the Lock.java

         <Local jdk Location>/j2sdk1.4.2_10/bin/java Lock

      ERROR:
      =====
         Exception in thread "main" java.lang.RuntimeException: Failed: bad: Failed to grab adjacent lock
              at Lock.test1(Lock.java:81)
              at Lock.main(Lock.java:29)

      2. How to Reproduce with 1.4.2_09-b05:
      --------------------------------------

      1. Install the jdk and follow following steps

        <Local Jdk Location>/j2sdk1.4.2_09/bin/java -version

      java version "1.4.2_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
      Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)

      2. Copy Lock.java from Regression testbase location to local machine.

      3. Compile the Lock.java

         <Local jdk Location>/j2sdk1.4.2_09/bin/javac Lock.java

      4. Run the Lock.java

         <Local jdk Location>/j2sdk1.4.2_09/bin/java Lock

        Result:
       =========
         No Exception

            duke J. Duke
            ssubhanisunw Shaik Subhani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: