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 66541 - IDE goes into an infinite loop of ClassCastException
Summary: IDE goes into an infinite loop of ClassCastException
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 01:21 UTC by Samaresh Panda
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file 5.0beta/var/log/messages.log (40.12 KB, text/plain)
2005-10-12 01:23 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samaresh Panda 2005-10-12 01:21:09 UTC
When I typed the following:
            if( !(node instanceof org.w3c.dom.Element) !!
node.getLocalName().endsWith("xxx")) {
                continue;
            }

IDE keeps throwing the following CCE. Note the two !! instead of ||


java.lang.ClassCastException: org.netbeans.jmi.javamodel.InfixExpression$Impl
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.TypeCastImpl.initChildren(TypeCastImpl.java:81)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.TypeCastImpl.getTypeName(TypeCastImpl.java:49)
	at org.netbeans.jmi.javamodel.TypeCast$Impl.getTypeName(Unknown Source)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.TypeCastImpl.getChildren(TypeCastImpl.java:71)
	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 Samaresh Panda 2005-10-12 01:23:07 UTC
Created attachment 25827 [details]
IDE log file 5.0beta/var/log/messages.log
Comment 2 Roman Strobl 2005-10-17 12:41:18 UTC
Reassigning to javacore, please evaluate. Thanks!
Comment 3 Pavel Flaska 2005-10-17 16:17:52 UTC
Fix in progress
Comment 4 Pavel Flaska 2005-10-18 08:09:57 UTC
Checking in gjast.jar;
/cvs/java/external/gjast.jar,v  <--  gjast.jar
new revision: 1.7; previous revision: 1.6
done
Comment 5 Max Sauer 2007-02-15 16:18:40 UTC
No longer valid with Retouche.
---
NetBeans IDE Dev (Build 200702141900)
1.6.0; Java HotSpot(TM) 64-Bit Server VM 1.6.0-b105
SunOS version 5.10 running on sparcv9
en (nb); ISO646-US
Comment 6 Quality Engineering 2007-09-20 12:05:51 UTC
Reorganization of java component