Module system can't load current bouncycastle release (OSGI)
Body
update attempts like https://github.com/mbien/netbeans/commit/d137490c20133fa0c35e8c50783bd8731e557bc1 result in:
[junit] WARNING [org.netbeans.core.netigso.Netigso]: Cannot fake bcprov
[junit] org.osgi.framework.BundleException: Invalid manifest header Import-Package: "java.io;resolution:="optional"" : Cannot specify java.* packages in Import/Export headers "java.io"
[junit] at org.eclipse.osgi.internal.resolver.StateBuilder.checkImportExportSyntax(StateBuilder.java:824)
[junit] at org.eclipse.osgi.internal.resolver.StateBuilder.validateHeaders(StateBuilder.java:212)
we are stuck on 1.77 atm (https://github.com/apache/netbeans/pull/8892, https://github.com/apache/netbeans/pull/7569)
Committer
- [x] I acknowledge that I am a maintainer/committer in the Apache NetBeans project.
IIUC this requires support for OSGI 7+. eg. see comment https://github.com/bcgit/bc-java/issues/1582#issuecomment-1956113080
I'll put high priority on this since this can cause problems if we have to update something for some reason but we can't.
the mylin removal might also be required to get in first, before we can do anything with the osgi base.
@mbien I think that real problem here is wrong version of equinox (netbinox) I can see that osgi lib contains core in version 8 and cpmn in version 7 which is correct. Also apache felix (libs.felix) has a correct version. So maybe remove equinox will solve the problem here.
@jherkel yes, that was my hope, see https://github.com/apache/netbeans/pull/9020#issuecomment-3545330910 which had promising results.