Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Next
-
None
-
None
-
openjdk-9
Arch Linux, kernel 4.15.13
Description
Simple javascript code emits exception on every edit, IDE start, save and so on.
Example of such code:
a.b=a.b;
While this code seems useless it's used quite often, like in google analytics:
window.dataLayer = window.dataLayer || [];
(emitting same exception)
Stack trace:
java.lang.StackOverflowError at java.util.HashMap.hash(HashMap.java:339) at java.util.HashMap.put(HashMap.java:612) at java.util.HashSet.add(HashSet.java:220) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypeFromSemiType(ModelUtils.java:639) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveAssignments(ModelUtils.java:1294) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveAssignments(ModelUtils.java:1262) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypes(ModelUtils.java:1215) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypes(ModelUtils.java:1232) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypes(ModelUtils.java:1232) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypes(ModelUtils.java:1232) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypes(ModelUtils.java:1232)
...
...
and so on.
Attachments
Issue Links
- is duplicated by
-
NETBEANS-1253 StackOverflowError opening Javascript file
- Closed
-
NETBEANS-794 java.lang.StackOverflowError on project scanning
- Closed
- is related to
-
NETBEANS-1069 copiar proyecto web php
- Closed
-
NETBEANS-995 java.lang.StackOverflowError org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypes(ModelUtils.java:1215)
- Closed
- relates to
-
NETBEANS-508 StackOverflowError at org.netbeans.modules.javascript2.model.api.ModelUtils.getVariables
- Closed