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.

Bug 258904 - ClassCastException: org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor1$ReachableMethodPlaceholder1 cannot be cast to org.netbeans.lib.profiler.classfile.DynamicClassInfo
Summary: ClassCastException: org.netbeans.lib.profiler.instrumentation.RecursiveMethod...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2016-04-19 11:33 UTC by Jiri Sedlacek
Modified: 2016-04-20 01:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 223615


Attachments
stacktrace (1.14 KB, text/plain)
2016-04-19 11:33 UTC, Jiri Sedlacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2016-04-19 11:33:16 UTC
Build: NetBeans IDE Dev (Build 20160418-9190d0ed6041)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.77-b03, Java(TM) SE Runtime Environment, 1.8.0_77-b03
OS: Windows 7

User Comments:
jis: Profiling methods of Java2Demo, Selected classes, Exclude core Java classes, Profile File.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor1$ReachableMethodPlaceholder1 cannot be cast to org.netbeans.lib.profiler.classfile.DynamicClassInfo
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor.getSuperClass(RecursiveMethodInstrumentor.java:647)
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor.addToSubclassList(RecursiveMethodInstrumentor.java:185)
   at org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor1.getMethodsToInstrumentUponClassLoad(RecursiveMethodInstrumentor1.java:207)
   at org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponseForCallGraph(Instrumentor.java:374)
   at org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponse(Instrumentor.java:266)
   at org.netbeans.lib.profiler.ProfilerClient.instrumentMethodGroupFollowUp(ProfilerClient.java:1924)
Comment 1 Jiri Sedlacek 2016-04-19 11:33:18 UTC
Created attachment 159330 [details]
stacktrace
Comment 2 Jiri Sedlacek 2016-04-19 11:42:38 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/9f61aa7df400.
Comment 3 Jiri Sedlacek 2016-04-19 12:42:28 UTC
Also fixed by http://hg.netbeans.org/profiler-main/rev/2db2058982ef.
Comment 4 Quality Engineering 2016-04-20 01:49:11 UTC
Integrated into 'main-silver', will be available in build *201604200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9f61aa7df400
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #258904 - Use ClassRepository.getAllClassVersions only for DynamicClassInfo