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.
The method createBounds(int[] oldOffsets) throws the ClassCastException when tries to get EditorCookie. It calls JspServletDataObject.getCookie method which returns JspServletDataObject.ServletEditorCookie instance. See method [public Node.Cookie getCookie(Class c)] in the attached source file.
Created attachment 19650 [details] JspServletDataObject source.
Created attachment 19651 [details] Exception arises when user clicks View Servlet from context menu of a JSP page.
It is hell to have JavaDataObject in public API. Everyone is trying to change it's behavior and then he is surprised, that it does not work :) But as long as JavaDataObject is public, we must fix such bugs. :(
Fixed. Please Verify Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v <-- ResourceImpl.java new revision: 1.58; previous revision: 1.57 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/javacore/parser/ASTProvider.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/parser/ASTProvider.java,v <-- ASTProvider.java new revision: 1.37; previous revision: 1.36 done Checking in src/org/netbeans/modules/javacore/parser/Util.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/parser/Util.java,v <-- Util.java new revision: 1.4; previous revision: 1.3 done
Wow, I can view my servlet pet again :))
Reorganization of java component