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

JNLPCachedJarURLConnection.getContentLength() may cause unneeded network requests for cached jars

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        If getContentLength() is the first call after construction of JNLPCachedJarURLConnection object then it will result delegate work to parent and this means network request will be performed even for cached jar file!

        Obviously this have huge impact on performance as network requests are expensive.

        It appears that FX applications may do this and this make this even more important.
        Using SimpleVideoPlayer demo it happens 11 (!) times.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  igor Igor Nekrestyanov (Inactive)
                  Reporter:
                  igor Igor Nekrestyanov (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: