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 53309 - ClassCastException in ASTProvider.createBounds()
Summary: ClassCastException in ASTProvider.createBounds()
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-12 16:50 UTC by Libor Kotouc
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JspServletDataObject source. (8.97 KB, text/plain)
2005-01-12 16:52 UTC, Libor Kotouc
Details
Exception arises when user clicks View Servlet from context menu of a JSP page. (1.92 KB, text/plain)
2005-01-12 16:55 UTC, Libor Kotouc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libor Kotouc 2005-01-12 16:50:54 UTC
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.
Comment 1 Libor Kotouc 2005-01-12 16:52:42 UTC
Created attachment 19650 [details]
JspServletDataObject source.
Comment 2 Libor Kotouc 2005-01-12 16:55:56 UTC
Created attachment 19651 [details]
Exception arises when user clicks View Servlet from context menu of a JSP page.
Comment 3 Jan Becicka 2005-01-13 06:52:49 UTC
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. :(
Comment 4 Jan Becicka 2005-01-13 12:44:12 UTC
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
Comment 5 Libor Kotouc 2005-01-13 18:21:00 UTC
Wow, I can view my servlet pet again :))
Comment 6 Quality Engineering 2007-09-20 09:50:02 UTC
Reorganization of java component