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

MimeTable initialization is too greedy

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: