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