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 - java.lang.ClassCastException cast on variable declaration
Summary: java.lang.ClassCastException cast on variable declaration
Status: RESOLVED DUPLICATE of bug 63195
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 09:15 UTC by aleonard
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 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