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

JAVAX: setting sysclasspath does not work in all cases using extensions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description


      arthur.frechette@East 1998-02-18I am seeing some strange things with setting sysclasspath testing the java
      extensions framework. It seems to me that all 4 of these test cases should
      pass but 2 are passing and 2 are failing.

      The 2 cases that fail are when you specify "." in the classpath and when
      you had absolute path to test directory in test case. Could not figure
      this one out. Do not understand why in some cases due to changes to
      sysclasspath that T0 classloader = null

      Test case provided as TAR file. The tar file will be part of the attachment section.


      adfsys 4100 =>make rundot
      java -new -Xsysclasspath:/js/files/JDK1.2_latest/solaris/lib/classes.zip:. -Djava.ext.dirs=ext/e1 -jar T0.jar
      T0 ClassLoader=null
      ================================================
      T0 test cases [APPLICATION/INSTALLED EXTENSIONS]
      ================================================
          T0:(test0) ... test package sealed for [pkgs.one.A]
      --------------------------------------------------------------------------------
      Begin executing test T0:(test0) .....
      Test package sealed [INSTALLED EXTENSIONS]
      Create instance of class pkgs.one.A - sealed
      java.lang.NoClassDefFoundError: pkgs/one/A
      at T0.test0(T0.java:36)
      at T0.main(T0.java:17)
      *** Error code 1
      make: Fatal error: Command failed for target `rundot'
       adfsys 4101 =>make runrelative
      java -new -Xsysclasspath:/js/files/JDK1.2_latest/solaris/lib/classes.zip:utildir -Djava.ext.dirs=ext/e1 -jar T0.jar
      T0 ClassLoader=java.net.URLClassLoader@b9eaa793
      ================================================
      T0 test cases [APPLICATION/INSTALLED EXTENSIONS]
      ================================================
          T0:(test0) ... test package sealed for [pkgs.one.A]
      --------------------------------------------------------------------------------
      Begin executing test T0:(test0) .....
      Test package sealed [INSTALLED EXTENSIONS]
      Create instance of class pkgs.one.A - sealed
      A=(pkgs.one.A:sealed)
      A ClassLoader=sun.misc.Launcher$ExtClassLoader@bb22a793
      Verify package not sealed
      T0:(test0) ..... PASSED
      Done executing test T0:(test0) .....
      --------------------------------------------------------------------------------
      ***** -------------------
      ***** Test Result Summary
      ***** -------------------
      ***** T0:(test0) . . . . . . . . PASSED
      ***** T0 . . . . . . . . PASSED
      ********************************************************************************
       adfsys 4102 =>make runabsolute1
      java -new -Xsysclasspath:/js/files/JDK1.2_latest/solaris/lib/classes.zip:/tmp/T0/utildir -Djava.ext.dirs=ext/e1 -jar T0.jar
      T0 ClassLoader=java.net.URLClassLoader@b9eea78d
      ================================================
      T0 test cases [APPLICATION/INSTALLED EXTENSIONS]
      ================================================
          T0:(test0) ... test package sealed for [pkgs.one.A]
      --------------------------------------------------------------------------------
      Begin executing test T0:(test0) .....
      Test package sealed [INSTALLED EXTENSIONS]
      Create instance of class pkgs.one.A - sealed
      A=(pkgs.one.A:sealed)
      A ClassLoader=sun.misc.Launcher$ExtClassLoader@bb22a78d
      Verify package not sealed
      T0:(test0) ..... PASSED
      Done executing test T0:(test0) .....
      --------------------------------------------------------------------------------
      ***** -------------------
      ***** Test Result Summary
      ***** -------------------
      ***** T0:(test0) . . . . . . . . PASSED
      ***** T0 . . . . . . . . PASSED
      ********************************************************************************
       adfsys 4103 =>make runabsolute2
      java -new -Xsysclasspath:/js/files/JDK1.2_latest/solaris/lib/classes.zip:/tmp/T0 -Djava.ext.dirs=ext/e1 -jar T0.jar
      T0 ClassLoader=null
      ================================================
      T0 test cases [APPLICATION/INSTALLED EXTENSIONS]
      ================================================
          T0:(test0) ... test package sealed for [pkgs.one.A]
      --------------------------------------------------------------------------------
      Begin executing test T0:(test0) .....
      Test package sealed [INSTALLED EXTENSIONS]
      Create instance of class pkgs.one.A - sealed
      java.lang.NoClassDefFoundError: pkgs/one/A
      at T0.test0(T0.java:36)
      at T0.main(T0.java:17)
      *** Error code 1
      make: Fatal error: Command failed for target `runabsolute2'


      Forgot to add attachment test

        Attachments

          Activity

            People

            • Assignee:
              dconnellsunw David Connelly (Inactive)
              Reporter:
              afrechet Art Frechette (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: