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 254290

Summary: StackOverflowError at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan
Product: php Reporter: Exceptions Reporter <exceptions_reporter>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: junichi11
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219104
Attachments: stacktrace

Description Exceptions Reporter 2015-08-12 04:03:41 UTC
This bug was originally marked as duplicate of bug 166982, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Windows 8.1

User Comments:
GUEST: I was looking on the Tools menu, maybe opening Plugins item, while 8.1 was scanning projects in background




Stacktrace: 
java.lang.StackOverflowError
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:148)
   at org.netbeans.modules.php.editor.model.impl.ModelVisitor.scan(ModelVisitor.java:200)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.visit(DefaultVisitor.java:378)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultTreePathVisitor.visit(DefaultTreePathVisitor.java:430)
   at org.netbeans.modules.php.editor.parser.astnodes.InfixExpression.accept(InfixExpression.java:139)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:148)
Comment 1 Exceptions Reporter 2015-08-12 04:03:44 UTC
Created attachment 155276 [details]
stacktrace
Comment 2 junichi11 2015-11-27 03:59:07 UTC
There may be a too long infix notation. 
e.g. 
$x = 'foo' . $a . [...] . 'bar' . $b . [...];

$x = 1 + $a + [...] * $z - [...];