[ 
https://issues.apache.org/jira/browse/NETBEANS-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523639#comment-16523639
 ] 

Reema Taneja commented on NETBEANS-538:
---------------------------------------

Thanks Junichi, for verifying the patch. NETBEANS-995 looks to be same issue 
from trace. I have made it duplicate of this bug.

> 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á
>            Assignee: Reema Taneja
>            Priority: Critical
>         Attachments: Snímek obrazovky pořízený 2018-03-28 21-14-01.png, 
> netbeans-538.patch
>
>
> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to