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.
Reproduced in build080407. Open attached file in editor.
Created attachment 59783 [details] PHP file
Hi Philipp, can you please attach the stack trace?
java.lang.ClassCastException: org.netbeans.modules.php.editor.parser.astnodes.Variable at org.netbeans.modules.php.editor.nav.SemiAttribute.visit(SemiAttribute.java:248) at org.netbeans.modules.php.editor.parser.astnodes.FunctionInvocation.accept(FunctionInvocation.java:86) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:128) at org.netbeans.modules.php.editor.nav.SemiAttribute.visit(SemiAttribute.java:282) at org.netbeans.modules.php.editor.parser.astnodes.FunctionInvocation.accept(FunctionInvocation.java:86) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:149) at org.netbeans.modules.php.editor.nav.SemiAttribute.visit(SemiAttribute.java:185) at org.netbeans.modules.php.editor.parser.astnodes.Assignment.accept(Assignment.java:109) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:234) at org.netbeans.modules.php.editor.parser.astnodes.ExpressionStatement.accept(ExpressionStatement.java:71) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:290) at org.netbeans.modules.php.editor.parser.astnodes.IfStatement.accept(IfStatement.java:105) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:250) at org.netbeans.modules.php.editor.parser.astnodes.ForEachStatement.accept(ForEachStatement.java:110) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:128) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:160) at org.netbeans.modules.php.editor.parser.astnodes.Block.accept(Block.java:93) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:290) at org.netbeans.modules.php.editor.parser.astnodes.IfStatement.accept(IfStatement.java:105) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:128) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:160) at org.netbeans.modules.php.editor.parser.astnodes.Block.accept(Block.java:93) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:269) at org.netbeans.modules.php.editor.nav.SemiAttribute.visit(SemiAttribute.java:206) at org.netbeans.modules.php.editor.parser.astnodes.FunctionDeclaration.accept(FunctionDeclaration.java:113) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:128) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:346) at org.netbeans.modules.php.editor.nav.SemiAttribute.visit(SemiAttribute.java:151) at org.netbeans.modules.php.editor.parser.astnodes.Program.accept(Program.java:89) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:121) at org.netbeans.modules.php.editor.nav.SemiAttribute.scan(SemiAttribute.java:132) at org.netbeans.modules.php.editor.nav.SemiAttribute.semiAttribute(SemiAttribute.java:476) at org.netbeans.modules.php.editor.nav.OccurrencesFinderImpl.compute(OccurrencesFinderImpl.java:92) at org.netbeans.modules.php.editor.nav.OccurrencesFinderImpl.run(OccurrencesFinderImpl.java:84) at org.netbeans.modules.php.editor.nav.OccurrencesFinderImpl.run(OccurrencesFinderImpl.java:66) at org.netbeans.modules.gsfret.editor.semantic.MarkOccurencesHighlighter.processImpl(MarkOccurencesHighlighter.java:161) at org.netbeans.modules.gsfret.editor.semantic.MarkOccurencesHighlighter.run(MarkOccurencesHighlighter.java:122) at org.netbeans.modules.gsfret.editor.semantic.MarkOccurencesHighlighter.run(MarkOccurencesHighlighter.java:79) at org.netbeans.napi.gsfret.source.Source$CompilationJob.run(Source.java:1242) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) [catch] at java.lang.Thread.run(Thread.java:613)
I think there are a duplicate of this bug.
*** Issue 132253 has been marked as a duplicate of this issue. ***
Should be OK now, thanks for the test case: http://hg.netbeans.org/release61/rev/ab3fb2b4de0e
verified in NetBeans IDE Dev (Build 20080429082942