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 68537 - 5.0-beta, ConditionalExpression$Impl, ClassCastException on wrong statement
Summary: 5.0-beta, ConditionalExpression$Impl, ClassCastException on wrong statement
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-11-11 11:47 UTC by arhus
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans log (175.06 KB, text/plain)
2005-11-11 11:49 UTC, arhus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arhus 2005-11-11 11:47:56 UTC
Try to declare evalValues as java.util.List and use this line in your code:

(this.evalValues != null) ? this.evalValues.add(Boolean.FALSE) : this.evalValues
= Arrays.asList(new Boolean[]{Boolean.FALSE});

and place the cursor at the beginning by pressing Home. You will see a
ClassCastException to come up. It comes up again when you press Ok. Try to press
End to avoid it to appear again.

*********** Exception occurred ************ at 12:45 PM on Nov 11, 2005
java.lang.ClassCastException: org.netbeans.jmi.javamodel.ConditionalExpression$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 arhus 2005-11-11 11:49:22 UTC
Created attachment 26856 [details]
Netbeans log
Comment 2 Jan Becicka 2005-11-11 12:02:47 UTC

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