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

method AccessController.checkPermission(Permission perm) should be clarified

XMLWordPrintable

    • b20
    • x86
    • solaris
    • Not verified

        Specification for java.security.AccessController.checkPermission(Permission perm) method reads:

        "This method quietly returns if the access request is permitted, or throws a suitable AccessControlException otherwise."

        Term "suitable AccessControlException" should be clarified. Should a Permission instance returned by AccessControlException.getPermission() be the same as permission instance passed as a parameter to checkPermission() method or they should be equivalent as compared by equals() method. In latter case it's up to implementor of Permission.equals() method what permission instance should be associated with thrown AccessControlException.

              weijun Weijun Wang
              mismirno Mikhail Smirnov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: