Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8024970 André Bargull's list on Sep 17, 2013
  3. JDK-8080377

Stack overflow error and subsequent bootstrap error

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • None
    • 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

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

              Created:
              Updated:
              Resolved: