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.
Recent change to Netbeans module o.n.bootstrap/org.netbeans.JarClassLoader broke the jMaki NB plugin 1.7.3 that I am using with NB6.5 dev build. Here is the change http://hg.netbeans.org/main/rev/e7036dc03341 Below is the exception while invoking Add JMaki Library: INFO: org.netbeans.JarClassLoader.addSources(java.util.List) java.lang.NoSuchMethodException: org.netbeans.JarClassLoader.addSources(java.util.List) at java.lang.Class.getDeclaredMethod(Class.java:1909) [catch] at org.netbeans.modules.sun.jmaki.complib.RegisterLibrary.addResourcePaths(RegisterLibrary.java:224) See jMaki issue for detail https://ajax.dev.java.net/issues/show_bug.cgi?id=360
I guess the jMaki plugin will need to do something else. Don't know why it was calling this undocumented and package-private method to begin with. If you need to load resources from a JAR whose location can only be determined at runtime, you can create a URLClassLoader etc.
Jesse, you are correct, we should not be doing that. We did it to bypass severe Nb Palette APIs. We cannot find a way for the solution (see http://www.netbeans.org/issues/show_bug.cgi?id=93451 ) I wanted to removed the hack for 6.5. If you can find a solution to http://www.netbeans.org/issues/show_bug.cgi?id=93451, I am happy to implement it. (I can forward internal emails for this request as well). Otherwise, Nb 6.5 will not have jMaki support as opposed to Eclipse 3.3 and 3.4. The current NB Palette APIs(/and/or JSP/HTML usage of old APIS) are not good enough for advanced palette content extension, and RFE are not getting traction given schedule constraints. We could continue our hack (I understand now how to use introspection to change final variables, but it is not the way I want to work). The RFE I ask to be filed on Palette is pretty old now...
Modifying a final variable is no worse a hack than calling a private method IMHO. At any rate, if you plan to do something like that you must communicate with the owner of the affected code and make sure there is a way to maintain the functioning of the hack and a plan to fix it properly in the future. Standa has suggested some options in issue #93451 which I would encourage you to explore. You can certainly escalate the issue if it is critical for shipping jMaki support. I don't know anything about the Palette APIs so I could not be much help.