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 270686 - ClassCastException: org.netbeans.modules.debugger.jpda.ui.WatchPanel$MyTrees cannot be cast to com.sun.source.util.DocTrees
Summary: ClassCastException: org.netbeans.modules.debugger.jpda.ui.WatchPanel$MyTrees ...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-19 15:58 UTC by Exceptions Reporter
Modified: 2017-08-13 01:49 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228728


Attachments
stacktrace (2.67 KB, text/plain)
2017-05-19 15:58 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-05-19 15:58:36 UTC
Build: NetBeans IDE Dev (Build 20170518-c42a89dd3b22)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Mac OS X

User Comments:
GUEST: <Please provide a description of the problem or the steps to reproduce>xd

terje7601: Entering a new Watch Expression

GUEST: Everytime

gtzabari: 1. Entered "this." expression in Watch window.
2. Hit code-complete
3. Exception thrown

gtzabari: Entered expression in Variables watch. Exception thrown.

GUEST: Use the Debug->Variables pane, and enter any kind of Class.Method




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.debugger.jpda.ui.WatchPanel$MyTrees cannot be cast to com.sun.source.util.DocTrees
   at org.netbeans.api.java.source.CompilationInfo.getDocTrees(CompilationInfo.java:302)
   at org.netbeans.api.java.source.ui.ElementJavadoc.getElementDocFromSource(ElementJavadoc.java:887)
   at org.netbeans.api.java.source.ui.ElementJavadoc.getElementDoc(ElementJavadoc.java:754)
   at org.netbeans.api.java.source.ui.ElementJavadoc.<init>(ElementJavadoc.java:381)
   at org.netbeans.api.java.source.ui.ElementJavadoc.create(ElementJavadoc.java:184)
   at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery$3.create(JavaCompletionProvider.java:260)
Comment 1 Exceptions Reporter 2017-05-19 15:58:39 UTC
Created attachment 164356 [details]
stacktrace
Comment 2 Dusan Balek 2017-08-11 13:40:23 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/14723b440dd0
Comment 3 Quality Engineering 2017-08-13 01:49:34 UTC
Integrated into 'main-silver', will be available in build *201708130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/14723b440dd0
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #270686 - ClassCastException: org.netbeans.modules.debugger.jpda.ui.WatchPanel$MyTrees cannot be cast to com.sun.source.util.DocTrees - fixed.