# HG changeset patch # User sundar # Date 1364461570 -19800 # Node ID debc7896d82dc620e2aff03b138333d0a9c967a2 # Parent f53963145c0a73c4992aee4c33eb1b4253c81e11 8010991: Enable test/javax/script/GetInterfaceTest.java again Reviewed-by: lagergren, hannesw diff -r f53963145c0a -r debc7896d82d jdk/test/javax/script/GetInterfaceTest.java --- a/jdk/test/javax/script/GetInterfaceTest.java Wed Mar 27 13:40:26 2013 -0400 +++ b/jdk/test/javax/script/GetInterfaceTest.java Thu Mar 28 14:36:10 2013 +0530 @@ -22,7 +22,6 @@ */ /* - * @run ignore * @test * @bug 6960211 * @summary JavaScript engine allows creation of interface although methods not available. @@ -49,30 +48,30 @@ } // now define "run" - engine.eval("function run() { println('this is run function'); }"); + engine.eval("function run() { print('this is run function'); }"); runnable = ((Invocable)engine).getInterface(Runnable.class); // should not return null now! runnable.run(); // define only one method of "Foo2" - engine.eval("function bar() { println('bar function'); }"); + engine.eval("function bar() { print('bar function'); }"); Foo2 foo2 = ((Invocable)engine).getInterface(Foo2.class); if (foo2 != null) { throw new RuntimeException("foo2 is not null!"); } // now define other method of "Foo2" - engine.eval("function bar2() { println('bar2 function'); }"); + engine.eval("function bar2() { print('bar2 function'); }"); foo2 = ((Invocable)engine).getInterface(Foo2.class); foo2.bar(); foo2.bar2(); } - interface Foo { + public interface Foo { public void bar(); } - interface Foo2 extends Foo { + public interface Foo2 extends Foo { public void bar2(); } }