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.
Build: NetBeans IDE Dev (Build 20171012-8fbff2d899d9) VM: OpenJDK 64-Bit Server VM, 9+181, OpenJDK Runtime Environment, 9+181 OS: Linux User Comments: tboudreau: Editing a js source Stacktrace: java.lang.StackOverflowError at java.lang.Math.min(Math.java:1512) at java.util.Arrays.copyOf(Arrays.java:3722) at java.util.Arrays.copyOf(Arrays.java:3688) at java.util.ArrayList.toArray(ArrayList.java:381) at java.util.ArrayList.addAll(ArrayList.java:598) at org.netbeans.modules.javascript2.model.JsObjectImpl.getAssignments(JsObjectImpl.java:351)
Created attachment 165327 [details] stacktrace
Okay, something is haywire in Bugzilla's spam filter and it's not letting me post the clone message. I have a github project in which simply opening one file reproduces this bug 100% of the time. Link is here: https://timboudreau.com/files/nb_bug_271676.txt
100% reproducible if you clone https://github.com/timboudreau/cfig and open cfig.js I will attach a simple patch that fixes the problem.
Created attachment 165500 [details] Patch to avoid recursively trying to resolve the same element Simply tests to see if the method is going to call itself with the same arguments as it is currently called with.