Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description


      StackOverFlowError in LambdaForm bootstrapping is annoying to handle:

      Test 1:
      jjs> function test() { try { test(); } catch(e) { throw e+""} }
      function test() { try { test(); } catch(e) { throw e+""} }
      jjs> try { test(); } catch (e) {e.printStackTrace()}
      java.lang.NoClassDefFoundError: Could not initialize class
      jdk.nashorn.internal.runtime.ConsString
      jjs> try {""+{}}catch(e){e.printStackTrace()}
      java.lang.NoClassDefFoundError: Could not initialize class
      jdk.nashorn.internal.runtime.ConsString

      Test 2:
      jjs> function test() { try { test(1,test(1)); } catch(e) { throw
      function(){throw e}()} }
      function test() { try { test(1,test(1)); } catch(e) { throw
      function(){throw e}()} }
      jjs> try { test(); } catch (e) {e}
      java.lang.BootstrapMethodError: call site initialization exception

        Attachments

          Activity

            People

            • Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: