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.
JDK5 came with generic support for instrumentation: http://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html it however requires changes to the way one invokes Java. NetBeans Platform also needs such kind of patching from time to time, yet it would be better to do it in a modular way. E.g. be able to define a module which can provide transformation behavior which would then be applied to other loaded classes.
It would be nice to reuse the API already defined by java.lang.instrument package.
Basic implementation: http://hg.netbeans.org/ergonomics/rev/1ab79c331145 Y01 Need support for OSGi in Equinox mode Y02 Need documentation and a use-case description in arch.xml
Re. Y01: Netbinox now supported: http://hg.netbeans.org/ergonomics/rev/1809b61e5c46
Intended usage can be seen in following OSGi bundles: http://source.apidesign.org/hg/html~html4j/rev/86aabecda7a3 one of them defined Agent-Class and hopes that every module/bundle that depends on it will be processed by its JsAgent class.
I fixed the documentation. Unless there are objections I integrate tomorrow: http://hg.netbeans.org/ergonomics/rev/b55a0cbcfa6c
Merged as 6869874b14af to core-main.