changeset 19097 | f544a2ea40ef |
parent 19093 | 49bb7e75b326 |
child 24778 | 2ff5d7041566 |
--- a/nashorn/test/script/trusted/JDK-8021189.js Wed Jul 24 08:25:04 2013 -0300 +++ b/nashorn/test/script/trusted/JDK-8021189.js Wed Jul 24 20:28:03 2013 +0530 @@ -27,8 +27,9 @@ * @test * @run */ +var InternalRunnableSuperclass = Java.type("jdk.nashorn.test.models.InternalRunnableSuperclass"); try { - new (Java.type("jdk.nashorn.internal.test.models.InternalRunnable")) + new (InternalRunnableSuperclass.getInternalRunnableType())(); } catch(e) { print(e) }