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 132230 - Endless exception during editing php file
Summary: Endless exception during editing php file
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 132253 (view as bug list)
Depends on:
Blocks: 131609
  Show dependency tree
 
Reported: 2008-04-07 17:44 UTC by kozlov
Modified: 2008-04-29 12:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
PHP file (36.56 KB, application/x-compressed)
2008-04-07 18:09 UTC, kozlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2008-04-07 17:44:32 UTC
Reproduced in build080407.

Open attached file in editor.
Comment 1 kozlov 2008-04-07 18:09:38 UTC
Created attachment 59783 [details]
PHP file
Comment 2 Petr Jiricka 2008-04-07 22:50:11 UTC
Hi Philipp, can you please attach the stack trace?
Comment 3 kozlov 2008-04-08 14:17:18 UTC
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)

Comment 4 Petr Pisl 2008-04-08 16:37:21 UTC
I think there are a duplicate of this bug.
Comment 5 Jan Lahoda 2008-04-08 18:04:19 UTC
*** Issue 132253 has been marked as a duplicate of this issue. ***
Comment 6 Jan Lahoda 2008-04-08 18:48:02 UTC
Should be OK now, thanks for the test case:
http://hg.netbeans.org/release61/rev/ab3fb2b4de0e
Comment 7 Victoria Zhukovskaya 2008-04-29 12:39:08 UTC
verified in  NetBeans IDE Dev (Build 20080429082942