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 63195 - CCE from AssignmentImpl.initChildren on source with errors
Summary: CCE from AssignmentImpl.initChildren on source with errors
Status: RESOLVED FIXED
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:
: 64576 64848 64900 65398 65550 65747 65886 65910 66877 66914 66927 67467 67746 67772 67789 67837 68435 68537 68857 69200 69435 69820 69964 70466 70797 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-28 00:06 UTC by _ tboudreau
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 _ tboudreau 2005-08-28 00:06:38 UTC
I have the following code - I was in the process of typing the last line (the caret was at the end of the 
unfinished line) when this exception occurred:
            int mask = masksByFours[i];
            int curr = hash & mask;
            curr >>>= 8 * 

It occurs continuously until I delete or change the unfinished line "curr >>>= 8 *"

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.getElementByOffset(ElementFinder.jav
a:40)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getElementByOffset(ResourceImpl.java:
1612)
	at org.netbeans.modules.java.hints.JavaHintsProvider.getHints(JavaHintsProvider.java:121)
	at org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:
221)
	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 Tomas Hurka 2005-09-16 15:52:04 UTC
The important information is what is the line after curr >>>= 8 * 

Meanwhile I can reproduce it with the following code:
    public static void main(String[] args) {
        int a;
	
	assert a==null:"fff"+
	a=10;
    }
Comment 2 Pavel Flaska 2005-09-21 12:57:12 UTC
*** Issue 64576 has been marked as a duplicate of this issue. ***
Comment 3 Pavel Flaska 2005-09-22 14:57:41 UTC
*** Issue 64900 has been marked as a duplicate of this issue. ***
Comment 4 Tomas Hurka 2005-09-23 15:08:31 UTC
Fixed in trunk.

Checking in gjast.jar;
/cvs/java/external/gjast.jar,v  <--  gjast.jar
new revision: 1.2; previous revision: 1.1
done
Comment 5 Pavel Flaska 2005-09-27 13:18:34 UTC
*** Issue 64848 has been marked as a duplicate of this issue. ***
Comment 6 Martin Matula 2005-10-02 12:05:33 UTC
*** Issue 65550 has been marked as a duplicate of this issue. ***
Comment 7 Tomas Hurka 2005-10-04 10:45:38 UTC
*** Issue 65747 has been marked as a duplicate of this issue. ***
Comment 8 Martin Matula 2005-10-04 22:37:50 UTC
*** Issue 65398 has been marked as a duplicate of this issue. ***
Comment 9 Martin Matula 2005-10-04 22:39:56 UTC
*** Issue 65886 has been marked as a duplicate of this issue. ***
Comment 10 Tomas Hurka 2005-10-05 09:16:14 UTC
*** Issue 65910 has been marked as a duplicate of this issue. ***
Comment 11 Martin Matula 2005-10-17 08:37:29 UTC
*** Issue 66927 has been marked as a duplicate of this issue. ***
Comment 12 Pavel Flaska 2005-10-17 14:47:07 UTC
*** Issue 66914 has been marked as a duplicate of this issue. ***
Comment 13 Martin Matula 2005-10-18 09:53:41 UTC
*** Issue 66877 has been marked as a duplicate of this issue. ***
Comment 14 pbannister 2005-10-18 15:47:06 UTC
I am getting the same stack trace as in <a
href='http://www.netbeans.org/issues/show_bug.cgi?id=63195'>Issue 63195</a>
(marked as a duplicate) with NetBeans 5.0 Beta in the same scenario.  

Since this issue was closed 9/23 and the beta went out 9/28 ... is the fix meant
to be in the beta?

I apologize if this is a false alarm, but I do not see how to determine in which
release the fix should appear.
Comment 15 Martin Matula 2005-10-18 18:22:48 UTC
The beta was branched sooner than this issue was fixed. The fix did not make it
into the beta branch. The fix should be in the last q-build or you can download
a daily build.
Comment 16 Tomas Hurka 2005-10-25 14:21:45 UTC
*** Issue 67467 has been marked as a duplicate of this issue. ***
Comment 17 Martin Roskanin 2005-10-31 12:32:12 UTC
*** Issue 67772 has been marked as a duplicate of this issue. ***
Comment 18 Jan Becicka 2005-11-01 10:35:26 UTC
*** Issue 67837 has been marked as a duplicate of this issue. ***
Comment 19 Tomas Hurka 2005-11-01 14:27:08 UTC
*** Issue 67789 has been marked as a duplicate of this issue. ***
Comment 20 Tomas Hurka 2005-11-01 14:32:16 UTC
*** Issue 67746 has been marked as a duplicate of this issue. ***
Comment 21 Jan Becicka 2005-11-10 14:11:56 UTC
*** Issue 68435 has been marked as a duplicate of this issue. ***
Comment 22 Jan Becicka 2005-11-11 12:02:47 UTC
*** Issue 68537 has been marked as a duplicate of this issue. ***
Comment 23 Tomas Hurka 2005-11-21 15:13:50 UTC
*** Issue 68857 has been marked as a duplicate of this issue. ***
Comment 24 Tomas Hurka 2005-11-23 16:47:04 UTC
*** Issue 69200 has been marked as a duplicate of this issue. ***
Comment 25 Tomas Hurka 2005-11-28 14:02:11 UTC
*** Issue 69435 has been marked as a duplicate of this issue. ***
Comment 26 Jan Becicka 2005-12-07 07:21:28 UTC
*** Issue 69964 has been marked as a duplicate of this issue. ***
Comment 27 Tomas Hurka 2005-12-07 09:48:12 UTC
*** Issue 69820 has been marked as a duplicate of this issue. ***
Comment 28 Jan Becicka 2005-12-19 14:09:57 UTC
*** Issue 70466 has been marked as a duplicate of this issue. ***
Comment 29 Jan Becicka 2006-01-05 13:30:10 UTC
*** Issue 70797 has been marked as a duplicate of this issue. ***
Comment 30 Quality Engineering 2007-09-20 10:11:55 UTC
Reorganization of java component