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 65398 - class cast exception
Summary: class cast exception
Status: RESOLVED DUPLICATE of bug 63195
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 17:43 UTC by jportway
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jportway 2005-09-29 17:43:02 UTC
repeated exceptions every time the editor was touched. seemed to be caused when i had an incomplete 
line of source code that read like this :

String moviePath=movieURLManager.
Future<Boolean> movieOpenTask=getMovieThread().submit(new MovieOpenTask
(movieObject,moviePath));

note that the first line ended in a dot - when I added a mthod name after the dot the exceptions 
stopped.

here's the exception :

java.lang.ClassCastException: org.netbeans.jmi.javamodel.InfixExpression$Impl
	at org.netbeans.modules.javacore.jmiimpl.javamodel.AssignmentImpl.initChildren
(AssignmentImpl.java:87)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.AssignmentImpl.getLeftSide
(AssignmentImpl.java:44)
	at org.netbeans.jmi.javamodel.Assignment$Impl.getLeftSide(Unknown Source)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.AssignmentImpl.getChildren
(AssignmentImpl.java:77)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ElementFinder.getElementByOffset
(ElementFinder.java:40)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getElementByOffset
(ResourceImpl.java:1640)
	at org.netbeans.modules.j2ee.ejbcore.hints.EjbHintsProvider.getHints(EjbHintsProvider.java:82)
	at org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:
233)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
Comment 1 jportway 2005-09-29 17:47:39 UTC
this only seems to happen when the cursor is placed after the dot, so I guess it's a problem with code 
completion.
Comment 2 Martin Matula 2005-09-30 12:48:59 UTC
This should already be fixed - see issue 63195. What build were you using?
Comment 3 Martin Matula 2005-10-04 22:37:51 UTC

*** This issue has been marked as a duplicate of 63195 ***
Comment 4 Quality Engineering 2007-09-20 11:58:01 UTC
Reorganization of java component