-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
6
-
None
-
generic
-
generic
Problem description:
====================
Quotation from spec for javax.smartcardio.CardPermission.implies(Permission permission):
---Cut---
Checks if this CardPermission object implies the specified permission.
Specified by:
implies in class Permission
Returns:
true if this CardPermission object implies the specified permission.
---Cut---
So, javax.smartcardio.CardPermission is subclass of java.security.Permission class.
Quotation from spec from java.security.Permission.implies(Permission permission):
---Cut---
Checks if the specified permission's actions are "implied by" this object's actions.
This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.
---Cut---
In other words only Permission's subclasses should define the semantics.
So, we need to have clear definition of what means "implies by" in case of CardPermission.
For example of such specification you can look spec for for java.io.FilePermission.implies(Permission permission).
====================
Quotation from spec for javax.smartcardio.CardPermission.implies(Permission permission):
---Cut---
Checks if this CardPermission object implies the specified permission.
Specified by:
implies in class Permission
Returns:
true if this CardPermission object implies the specified permission.
---Cut---
So, javax.smartcardio.CardPermission is subclass of java.security.Permission class.
Quotation from spec from java.security.Permission.implies(Permission permission):
---Cut---
Checks if the specified permission's actions are "implied by" this object's actions.
This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.
---Cut---
In other words only Permission's subclasses should define the semantics.
So, we need to have clear definition of what means "implies by" in case of CardPermission.
For example of such specification you can look spec for for java.io.FilePermission.implies(Permission permission).
- duplicates
-
JDK-6445367 (smartcardio) Changes for JSR 268 Public Review
-
- Resolved
-