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

JAVAX: URLClassLoader fails to get image resource from same JAR as applet code.

    Details

      Description

      URLClassLoader fails to get image resources from same JAR as applet
      code using installed extensions with the "appletviewer" tool.

      The URLClassLoader does not retrieve the image resource via its
      URLClassLoader.getResource() method call for the case when the
      image resource is contained in the same JAR as the applet code.

      The test case for this is: javax/tests/ins/T11

      Notice that this test case uses "appletviewer" tool but uses the
      URLClassLoader for installed extensions.

      Type "make all; make run" to run the test. It fails to get the image
      resource "sunlogo.gif" by the URLClassLoader.getResource() method call.

      Here is the contents of the JAR file for test T13b.

         372 Thu Feb 19 09:52:34 EST 1998 META-INF/MANIFEST.MF
         270 Thu Feb 19 09:49:32 EST 1998 AppType.class
        5699 Thu Feb 19 09:49:32 EST 1998 T11.class
         473 Thu Feb 19 09:49:32 EST 1998 T11Frame$1.class
         965 Thu Feb 19 09:49:32 EST 1998 T11Frame.class
           0 Thu Feb 19 09:49:34 EST 1998 images/
        1962 Thu Feb 19 09:49:34 EST 1998 images/sunlogo.gif

      Here is the manifest file as part of the above JAR.

      Manifest-Version: 1.0
      Main-Class: T11

      The URLClassLoader should retreive the image "images/sunlogo.gif" from
      from the same JAR as the applet code but it does not.

      On another note this same test works when using the "java" interpreter
      instead of "appletviewer". Check out test case "javax/tests/ins/T10"
      which is the same test but uses the "java" interpreter which uses
      URLClassLoader which PASSES. So thus URLClassLoader does retrieve the
      image resource from the same JAR file as the applet code when using
      the "java" interpreter but fails when using the "appletviewer" tool.

      To get the Java Extensions Test Suite do a bringover of:

      % bringover -p /js/files7/JDK_tests/JDK1.2/javax

      Run the test:

      % cd javax/tests/ins/T11
      % make all run

      We need to update the javax test suite to work with JDK1.2Beta4. We plan on doing this the week of 4/27/98. After we update the javax test suite we will reevaluate this bug to see if it still exists.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: