You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Matějček (Jira)" <ji...@apache.org> on 2022/04/22 14:38:00 UTC
[jira] [Created] (FELIX-6522) Empty name is not allowed in JDK17+
David Matějček created FELIX-6522:
-------------------------------------
Summary: Empty name is not allowed in JDK17+
Key: FELIX-6522
URL: https://issues.apache.org/jira/browse/FELIX-6522
Project: Felix
Issue Type: Bug
Components: Framework
Affects Versions: framework-7.0.3
Reporter: David Matějček
Fix For: framework-7.0.4
h3. Bug
When GlassFish enables the SecurityManager, it is unable to start on JDK17 and JDK18, because BundleWiringImpl throws IAE.
h3. Cause
BasicPermission.init checks for an empty string since JDK17 (maybe earlier, but in JDK11 did not). Some capabilities return an empty string (I did not investigate which, I just saw the stacktrace in GlassFish). CapabilityPermission constructor then crashes.
h5. Minor note
The SecurityManager feature is now deprecated in JDK and marked for removal, so there should be some plan for Felix soon.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)