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.
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)
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.
It's duplicate of issue 88323 *** This issue has been marked as a duplicate of 88323 ***