matthiasblaesing commented on issue #9751:
URL: https://github.com/apache/netbeans/issues/9751#issuecomment-6448650853

   @draganbjedov could you please test both of these variants:
   
   ```
   netbeans -J-Dorg.osgi.framework.system.packages.extra=org.ietf.jgss
   netbeans -J-Dorg.osgi.framework.bootdelegation=org.ietf.jgss
   ```
   
   From reading the description of both parameters and the Apache Felix code, I 
think that the first variant should not change anything. I read this code:
   
   - 
https://github.com/apache/felix-dev/blob/master/framework/src/main/resources/default.properties#L103-L106
   - 
https://github.com/apache/felix-dev/blob/master/framework/src/main/java/org/apache/felix/framework/util/Util.java#L243-L271
   
   so that the modules are scanned for their exported packages. That would 
mean, that the required package is part of that list:
   
   
https://docs.oracle.com/en/java/javase/21/docs/api/java.security.jgss/module-summary.html
   
   I checked with a debugger and indeed the configuration of the framework 
holds a long list of packages for `org.osgi.framework.system.packages` and part 
of that list is: `, org.ietf.jgss; version="0.0.0.JavaSE_021",`.
   
   Changing the list using `org.osgi.framework.system.packages.extra` would, to 
my understanding, only change the packages that are made available to bundle 
for importing. The problem I see is, that `org.eclipse.jgit.ssh.apache` does 
not import the `org.ietf.jgss`. That is the reason why I think using 
`org.osgi.framework.bootdelegation` could work, as loading should then be 
delegated to the JDK classloader.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to