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

A java.lang.StackOverflowError exception has occurred.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Next
    • None
    • javascript - Editor
    • 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

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: