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

CodeSource.matchLocation getPort test can be improved

    Details

    • Subcomponent:
    • Resolved In Build:
      b36
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: