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

(smartcardio) specification for CardPermission.getActions() is insufficient

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • security-libs
    • None

      Problem description:
      ====================

      Quotation from spec from "String javax.smartcardio.CardPermission.getAction()":
      ---Cut---
      Returns the canonical string representation of the actions.
      Specified by:
      getActions in class Permission
       
      Returns:
      the canonical string representation of the actions.
      ---Cut---

      So, javax.smartcardio.CardPermission is subclass of java.security.Permission class.

      Quotation from spec for "String java.security.Permission.getAction()":
      ---Cut---
      Subclasses should always return actions in what they consider to be their canonical form.
      ---Cut---


      Therefore, specification for javax.smartcardio.CardPermission.getActions() should clarify what means under "canonical form" of actions string representation as specification for parent class required but it does not.

      For example of such specification you can look spec for java.io.FilePermission.getAction()

            andreas Andreas Sterbenz
            vsmelovsunw Vladimir Smelov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: