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

MimeTable initialization is too greedy

XMLWordPrintable

    • generic
    • generic

        sun.net.www.MimeTable.getDefaultTable() causes data to be actually loaded even if they are never used.

        plugin code touches mime table class on the main thread to ensure class is loaded from non-applet context and takes unnecessary performance hit.

        Note that if loading will be potponed then it should be done in the priveledged block as MimeTable can be used by untrusted code.

              chegar Chris Hegarty
              igor Igor Nekrestyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: