Source.baseURL is slow for URLs with unregistered protocol

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: