YannLeCorse opened a new pull request, #7624:
URL: https://github.com/apache/netbeans/pull/7624
This PR is to address the issue described in the discussion #7601.
When a Netbeans modules has a `ModuleInstall` class, we are trying to call
the `validate` method by reflection.
If the `ModuleInstall` class is related to classes located in an OSGi
module, we could face a `NoClassDefFoundError` while calling
`c.getDeclaredMethod("validate")` because the OSGi modules have a delayed
start, don't have yet been registered to the `ProxyClassPackages` and the
systemClassLoader not being yet ready.
As the validate method is called early in the startup process, such
relations should be avoid as much as possible but it should not block the
startup.
Thus the proposal is to catch the exception and continue the startup process
(maybe without having called the validate method).
--
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