-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b65
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084873 | emb-9 | Sean Mullan | P2 | Resolved | Fixed | team |
If the system property policy.provider is set then the Policy class attempts to load the provider via the boot loader and if that fails, attempts the extension loader. The implementation needs to be re-examined to see how this should work in JDK 9 and modules.
For starters, the extension mechanism is removed so there isn't a way for 3rd party policy providers to be loaded via the current mechanism. Is there any reason why the current mechanism can't always use the system class loader as the initiating loader? If the loader isn't null then the code could install the bootstrap provider before instantiating the configured policy provider.
It would also be useful if java.security.Policy should specify how it locates the configured provider, I was unable to find anything on this in the javadoc.
Finally, Policy will need to be examined to see if, or how, it should work when then policy provider is in a module.
A thread discussing this topic is here:
http://mail.openjdk.java.net/pipermail/jigsaw-dev/2015-March/004260.html
For starters, the extension mechanism is removed so there isn't a way for 3rd party policy providers to be loaded via the current mechanism. Is there any reason why the current mechanism can't always use the system class loader as the initiating loader? If the loader isn't null then the code could install the bootstrap provider before instantiating the configured policy provider.
It would also be useful if java.security.Policy should specify how it locates the configured provider, I was unable to find anything on this in the javadoc.
Finally, Policy will need to be examined to see if, or how, it should work when then policy provider is in a module.
A thread discussing this topic is here:
http://mail.openjdk.java.net/pipermail/jigsaw-dev/2015-March/004260.html
- backported by
-
JDK-8084873 Policy implementation does not allow policy.provider to be on the class path
-
- Resolved
-
- relates to
-
JDK-4202504 Should allow policy class to be provided as an extension or on CLASSPATH
-
- Resolved
-
-
JDK-8057646 ClassCircularityError running SQE test
-
- Closed
-
-
JDK-8040059 Change default policy for extensions to no permission
-
- Resolved
-