Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
framework.security-1.4.1
-
None
-
None
-
J2SE 1.4
Description
On J2SE1.4, running framework-3.0.7 and framework.security-1.4.1 throws Exception because the framework security uses JarEntry.getCodeSigners().
java.lang.NoSuchMethodException: java.util.jar.JarEntry.getCodeSigners()
at java.lang.Class.getMethod(Class.java:986)
at org.apache.felix.framework.security.verifier.BundleDNParser.<clinit>(BundleDNParser.java:62)
at org.apache.felix.framework.SecurityProviderImpl.<init>(SecurityProviderImpl.java:53)
at org.apache.felix.framework.SecurityActivator.start(SecurityActivator.java:204)
at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1243)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:620)
at org.apache.felix.framework.ExtensionManager.startExtensionBundle(ExtensionManager.java:394)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2610)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2429)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:121)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:107)
at org.apache.felix.main.AutoProcessor.processAutoDeploy(AutoProcessor.java:173)
at org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:78)
at org.apache.felix.main.Main.main(Main.java:291)
As far as I check the source, the impl catches the Exception and just calls ex.printStackTrace().
It seems to me that the conditional permission admin can be used in Neither J2SE 1.4 nor CDC FP1.1.
I'm not sure we can change the impl in order to allow it in either J2SE1.4 or CDC FP1.1.