8010991: Enable test/javax/script/GetInterfaceTest.java again
authorsundar
Thu, 28 Mar 2013 14:36:10 +0530
changeset 16719 debc7896d82d
parent 16718 f53963145c0a
child 16720 0e7e9e6ed98a
8010991: Enable test/javax/script/GetInterfaceTest.java again Reviewed-by: lagergren, hannesw
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();
     }
 }