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.
Summary: | ClassCastException: com.sun.tools.jdi.StringReferenceImpl cannot be cast to com.sun.jdi.ClassType | ||
---|---|---|---|
Product: | debugger | Reporter: | franciscocpg |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | franciscocpg |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 219622 |
Attachments: |
stacktrace
Test case |
Description
franciscocpg
2015-09-02 14:12:37 UTC
Created attachment 155823 [details]
stacktrace
I'm not able to reproduce the exception, can you please provide some sample code? Some Java class as a context and the expression that triggers this exception when evaluated? I managed to reproduce it. The code must not be compilable when doing the evaluation, thus you have probably made some modifications during debugging. Created attachment 155834 [details]
Test case
To reproduce, use the attached class.
Submit a line breakpoint to line 21 and debug file.
When the breakpoint is hit, select the expression on lines 21-25 and hold the mouse upon the selected text to get a tooltip.
The code will evaluate and you'll get the result in a tooltip.
Then uncomment line 20 and comment line 9. Save the file.
Select the same expression again and wait for a tooltip. This exception is thrown instead.
Fixed by changeset: 291514:68c3f0590819 http://hg.netbeans.org/core-main/rev/68c3f0590819 In the attached test case, error message 'Unknown type "URL"' is displayed instead of the exception, after this fix. Integrated into 'main-silver', will be available in build *201509040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/68c3f0590819 User: mentlicher@netbeans.org Log: #254934: When a class type can not be resolved, report it as an unknown type. Because of issue #255429, this fix was changed: changeset: 292396:57c29cf25c7f http://hg.netbeans.org/core-main/rev/57c29cf25c7f Integrated into 'main-silver', will be available in build *201509240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/57c29cf25c7f User: mentlicher@netbeans.org Log: #255429: Change the fix of issue #254934 not to be sensitive for error elements. |