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 195763

Summary: ClassCastException: com.sun.tools.javadoc.TagImpl cannot be cast to com.sun.javadoc.ParamTag
Product: java Reporter: michbarsinai <michbarsinai>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: FrantaM, michbarsinai
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 166200
Attachments: stacktrace
stacktrace

Description michbarsinai 2011-02-21 13:35:04 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-6578-on-110201)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
michbarsinai: Selected a text (using the mouse) in a java interface.




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javadoc.TagImpl cannot be cast to com.sun.javadoc.ParamTag
   at org.netbeans.modules.java.editor.javadoc.JavadocImports.computeTokensOfReferencedElements(JavadocImports.java:237)
   at org.netbeans.modules.java.editor.semantic.FindLocalUsagesQuery.handleJavadoc(FindLocalUsagesQuery.java:112)
   at org.netbeans.modules.java.editor.semantic.FindLocalUsagesQuery.visitMethod(FindLocalUsagesQuery.java:126)
   at org.netbeans.modules.java.editor.semantic.FindLocalUsagesQuery.visitMethod(FindLocalUsagesQuery.java:74)
   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:695)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
Comment 1 michbarsinai 2011-02-21 13:35:10 UTC
Created attachment 106244 [details]
stacktrace
Comment 2 Dusan Balek 2011-02-21 17:00:54 UTC
Do you have a reproducible test case? Thanks.
Comment 3 michbarsinai 2011-02-22 08:46:56 UTC
Created attachment 106277 [details]
stacktrace

editing java interface file
Comment 4 Dusan Balek 2011-02-22 09:03:16 UTC
Could you please attach the Java interface file that you are editing?