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

SocketPermission.implies seems wrong for unresolveable hosts

    XMLWordPrintable

Details

    • b05
    • generic
    • generic
    • Verified

    Description

      Let p = new SocketPermission("invalidhost", "connect"). Then p.implies(p) is false unless -DtrustProxy=true, yet p.equals(p) is true. It seems quite strange to have
          p.equals(p) && !p.implies(p)
      for any permission class. To my mind, the definition of equals for all Permission classes should be p.equals(q) iff p.implies(q) and q.implies(p).

      Attachments

        Issue Links

          Activity

            People

              yuwangsunw Yujiang Wang (Inactive)
              bscheiflsunw Bob Scheifler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: