Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-538

A java.lang.StackOverflowError exception has occurred.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Next
    • Fix Version/s: None
    • Component/s: javascript - Editor
    • Labels:
      None
    • Environment:
      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

        1. netbeans-538.patch
          2 kB
          Reema Taneja
        2. Snímek obrazovky pořízený 2018-03-28 21-14-01.png
          35 kB
          Viktorie Novotná

          Issue Links

            Activity

              People

              • Assignee:
                rtaneja Reema Taneja
                Reporter:
                viky Viktorie Novotná
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: