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

Resources with download="lazy" are eagerly updated

XMLWordPrintable

    • b124
    • x86
    • linux

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) SE Runtime Environment (build 1.6.0-rc-b104)
      Java HotSpot(TM) Client VM (build 1.6.0-rc-b104, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Linux localhost.localdomain 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:36:14 EST 2006 i686 i686 i386 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      Java Webstart updates the cache content eargerly, it checks at startup which files have been cached and whether there are new versions available.

      This renderes lazy downloading somewhat useless since its only lazy at the first time, not for future updates. Webstart should only check/download for updates if resources marked as lazy are really used.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.) Generate a Webstart-Application which consists of several plugins (several jars in the JNLP resource section marked as download="lazy"). If a jar-index is used these jars will only be downloaded if packages are accessed that reside in those jars.

      2.) Use the application and make the application download some (or all) of the plugins

      3.) Update all jar-files and restart the application.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Jar-File Resources wich are marked with download="lazy" should be also updated lazily on demand. Otherwise its not possible to use the jar-index+download="lazy" for e.g. plugins as they were intended for.
      ACTUAL -
      Webstart updates all previously downloaded resources at startup, blocking application startup and generating unneeded traffic.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Use a custom URLClassLoader, however till bug 4626915 is fixed this also makes no sense. (for now we use such a system for our applet based solutions)

            herrick Andy Herrick (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: