This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There is a lot of reflection in contrib/modulemanager, which makes it difficult to see what it is really using from the module system. I don't see any particular reason to use reflection this way. Should be simpler to just have a friend dep. Will attach start of patch. If completed, Hacks would disappear altogether.
Created attachment 63790 [details] Initial patch for main repo
Created attachment 63791 [details] Initial patch for contrib repo
Sure. I'll take care of it after my vacation. I thought I shouldn't introduce a new friend contract for contrib modules thus I have used such hacks. This patch will improve the code a lot.
I don't think it really matters whether the "friend" is in contrib or not. It still gets built every 8 hours by javadoc-nbms, so with a simple friend dep, any incompatible changes to core.startup that affect modulemanager will be reported quickly and can get fixed.
Fixed in http://hg.netbeans.org/core-main/rev/060265fa4dbd and in http://hg.netbeans.org/main/contrib/rev/b838ce381bdf