netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Module system can't load current bouncycastle release (OSGI)

Open mbien opened this issue 2 months ago • 4 comments

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.

mbien avatar Oct 08 '25 19:10 mbien

IIUC this requires support for OSGI 7+. eg. see comment https://github.com/bcgit/bc-java/issues/1582#issuecomment-1956113080

neilcsmith-net avatar Oct 09 '25 09:10 neilcsmith-net

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 avatar Oct 09 '25 17:10 mbien

@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 avatar Nov 18 '25 07:11 jherkel

@jherkel yes, that was my hope, see https://github.com/apache/netbeans/pull/9020#issuecomment-3545330910 which had promising results.

mbien avatar Nov 18 '25 07:11 mbien