Stack overflow error and subsequent bootstrap error

XMLWordPrintable

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


      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

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

              Created:
              Updated:
              Resolved: