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.
NB 4.1 (200505031930) JDK 1.5.0_03 ClassCastException is thrown when opening Tools from main menu while some item form Bean Patterns is selected. Steps: 1) create some property or event source 2) click on its node in the project window 3) try to open Tools main menu (with mouse, keyboard, shorcut) without losing focus from the selected item ->java.lang.ClassCastException: org.netbeans.modules.java.JavaDataObject at org.netbeans.modules.javadoc.comments.AutoCommentAction.findInFolder(AutoCommentAction.java:99) at org.netbeans.modules.javadoc.comments.AutoCommentAction.enable(AutoCommentAction.java:89)
Created attachment 22633 [details] Exception
Honzo, please look at it.
It is a bug of the beans module since PropertyPatternNode returns wrong cookie. Moving back to the beans component. I have a fix for this.
fixed in beans/src/org/netbeans/modules/beans/Pattern.java,v1.12
*** Issue 60982 has been marked as a duplicate of this issue. ***
verified
*** Issue 62025 has been marked as a duplicate of this issue. ***
*** Issue 63613 has been marked as a duplicate of this issue. ***