Product Version: NetBeans IDE Dev (Build 200804060002)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
Steps to reproduce:
Create AnagramGame sample application and run it under profiler (CPU mode, Profile Entire application, Profile All Classes).
Invoke Modify Profiling Session and switch from Profile All Classes to Profile Only Project classes.
Switch to tested application and invoke File->About dialog. There are exception from profiled application in IDE output:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 6542
see fil stacktrace in attachment
Created attachment 59763 [details]
Stacktrace log for this issue
Reproduced. This seems like a problem with dangling invalid instrumentation code.
This is actually bug in JVM. Some methods don't get redefined when using jvmti->redefineClasses. Reported as CR 6805864.
This problem cannot be fixed in NetBeans Profiler.