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 239253 - ClassCastException: org.netbeans.api.java.source.CompilationInfo cannot be cast to org.netbeans.api.java.source.WorkingCopy
Summary: ClassCastException: org.netbeans.api.java.source.CompilationInfo cannot be ca...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-09 07:21 UTC by Ralph Ruijs
Modified: 2013-12-12 02:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 205867


Attachments
stacktrace (5.52 KB, text/plain)
2013-12-09 07:21 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2013-12-09 07:21:54 UTC
Build: NetBeans IDE Dev (Build 20131209-95c0961b3eb2)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
ralphbenjamin: Tried to open tree view in navigator




Stacktrace: 
java.lang.ClassCastException: org.netbeans.api.java.source.CompilationInfo cannot be cast to org.netbeans.api.java.source.WorkingCopy
   at org.netbeans.api.java.source.TreeUtilities.ensureCommentsMapped(TreeUtilities.java:245)
   at org.netbeans.api.java.source.TreeUtilities.getComments(TreeUtilities.java:225)
   at org.netbeans.modules.java.debug.TreeNode$FindChildrenTreeVisitor.addCorrespondingComments(TreeNode.java:935)
   at org.netbeans.modules.java.debug.TreeNode$FindChildrenTreeVisitor.visitMemberSelect(TreeNode.java:671)
   at org.netbeans.modules.java.debug.TreeNode$FindChildrenTreeVisitor.visitMemberSelect(TreeNode.java:241)
   at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1903)
Comment 1 Ralph Ruijs 2013-12-09 07:21:55 UTC
Created attachment 142955 [details]
stacktrace
Comment 2 Svata Dedic 2013-12-09 07:29:00 UTC
Will be fixed in jet-main#d11f42442c72
Comment 3 Quality Engineering 2013-12-12 02:59:42 UTC
Integrated into 'main-silver', will be available in build *201312120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d11f42442c72
User: Svata Dedic <sdedic@netbeans.org>
Log: #239253: fixed typo in refactored condition