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 88412 - [retouche]AssertionError typing in constructor
Summary: [retouche]AssertionError typing in constructor
Status: RESOLVED DUPLICATE of bug 88323
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 14:15 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 2006-11-01 14:15:02 UTC
I was typing in a constructor:
    public int x1;
    public int x2;
    public int y1;
    public int y2;
    public long serialVersionUID = 23923214L;
    public Line(int x1, int y1, int x2, int y2) {
        this.x1 = x1;
        this.y
    }

when I got to this.y the following assertion was thrown (I ignored code
completion on the previous line and just continued typing when it came up). 
Possibly a timing issue around the document changing between the time code
completion starts thinking and the time it appears.

java.lang.AssertionError
	at org.netbeans.api.java.source.JavaSource.moveToPhase(JavaSource.java:757)
	at
org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:77)
	at org.netbeans.api.java.source.SourceUtils$1.run(SourceUtils.java:333)
	at org.netbeans.api.java.source.SourceUtils$1.run(SourceUtils.java:329)
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:375)
	at
org.netbeans.api.java.source.SourceUtils.getSourceContextFor(SourceUtils.java:329)
	at org.netbeans.api.java.source.SourceUtils.access$100(SourceUtils.java:70)
	at org.netbeans.api.java.source.SourceUtils$JavaDocEnv.getDoc(SourceUtils.java:420)
	at org.netbeans.api.java.source.SourceUtils.javaDocFor(SourceUtils.java:95)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.resolveDocumentation(JavaCompletionProvider.java:409)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.run(JavaCompletionProvider.java:285)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.run(JavaCompletionProvider.java:81)
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:375)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:215)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:195)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Comment 1 _ tboudreau 2006-11-01 14:16:50 UTC
Note that there is was a variable in the file called x, which I had deleted - so
there were other methods referencing a dead variable called 'y'.  It comes up
whenever I type this.y.
Comment 2 Jiri Prox 2006-11-01 14:29:30 UTC
It's duplicate of issue 88323

*** This issue has been marked as a duplicate of 88323 ***