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

1.1.4D regression: Images in Jar files no longer work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.1.5
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.1.5
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description


      ingrid.yao@Eng 1997-11-06

      Images in a JAR file are no longer used by JDK, causing unneccassary network
      round trips, because a vital line of code in sun.applet.AppletResourceLoader
      has been commented out by Javasoft!!! This line is still commented out in
      1.1.5D.
        
      The line in question is line 215 in 1.1.5D AppletResourceLoader.java:
      // loadedObj = createImage(...
        
      This line that puts an image in the jar file into the hash table!
      Without this line the images in the jar file are simply discarded.
      Uncommenting this line renables caching of images in jar files.
      Any applet the uses Applet.getImage() can be used as a testcase for this
      problem. Put the image in a jar file (make sure it's path in the jar file
      matches the URL passed to getImage() minus codebase) and ensure that the
      image it is not available on the web server and the image won't appear.
      Uncomment the line and the image will appear!
                  
        
      This regression is a must fix issue for Applications' production release by
      1.1.5FCS.

        Attachments

          Activity

            People

            Assignee:
            epelegrisunw Eduardo Pelegrillopart (Inactive)
            Reporter:
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: