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

1.1.4D regression: Images in Jar files no longer work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.1.5
    • 1.1.5
    • core-libs
    • None
    • 1.1.5
    • generic
    • generic
    • Not verified


      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: