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 68435

Summary: java.lang.ClassCastException cast on variable declaration
Product: java Reporter: aleonard <aleonard>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description aleonard 2005-11-10 09:15:23 UTC
typing this wrong command 
...
(string) pluto = 
...

Is reported an error but also an excpetion:
java.lang.ClassCastException
	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.getElementByOffse
t(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 Pavel Flaska 2005-11-10 11:28:30 UTC
Cannot reproduce. Please, provide more information, the build number and the
piece of code where it is reproducible. Maybe it was fixed already.
Comment 2 Jan Becicka 2005-11-10 14:11:58 UTC

*** This issue has been marked as a duplicate of 63195 ***
Comment 3 Quality Engineering 2007-09-20 10:25:36 UTC
Reorganization of java component