You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Viktorie Novotná (JIRA)" <ji...@apache.org> on 2018/03/28 19:16:00 UTC

[jira] [Created] (NETBEANS-538) A java.lang.StackOverflowError exception has occurred.

Viktorie Novotná created NETBEANS-538:
-----------------------------------------

             Summary: A java.lang.StackOverflowError exception has occurred.
                 Key: NETBEANS-538
                 URL: https://issues.apache.org/jira/browse/NETBEANS-538
             Project: NetBeans
          Issue Type: Bug
          Components: javascript - Editor
    Affects Versions: Next
         Environment: openjdk-9 
Arch Linux, kernel 4.15.13
            Reporter: Viktorie Novotná
         Attachments: Snímek obrazovky pořízený 2018-03-28 21-14-01.png

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.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists