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

Source.baseURL is slow for URLs with unregistered protocol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • b126
    • generic
    • generic

      Reported via nashorn-dev:
      http://mail.openjdk.java.net/pipermail/nashorn-dev/2016-June/006364.html

      When using custom URL protocol without registering a stream handler factory for it, calling Source.baseURL() when the Source is created causes a MalformedURLException to be thrown inside the URL constructor. This can cause significant overhead for apps that parse/compile a lot of scripts.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: