CodeSource.matchLocation getPort test can be improved

XMLWordPrintable

    • b36
    • generic
    • generic
    • Verified

      CodeSource.matchLocation(..) method currently uses the following test to check for port equality :

      - if (location.getPort() != -1) {
      - if (location.getPort() != that.location.getPort())
      - return false;
      - }

      The URLStreamHandler uses a more thorough check on port equality checks. It uses the getDefaultPort call.

            Assignee:
            Sean Mullan
            Reporter:
            Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: