< prev index next >
test/javax/script/Test3.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 23,37 ****
/*
* @test
* @bug 6249843 6705893
* @summary Test engine and global scopes
*/
! import javax.script.*;
! import java.io.*;
! import java.util.*;
public class Test3 {
public static void main(String[] args) throws Exception {
System.out.println("\nTest3\n");
final Reader reader = new FileReader(
--- 23,43 ----
/*
* @test
* @bug 6249843 6705893
* @summary Test engine and global scopes
+ * @modules jdk.scripting.nashorn
*/
! import java.io.File;
! import java.io.FileReader;
! import java.io.Reader;
! import javax.script.Bindings;
! import javax.script.ScriptContext;
! import javax.script.ScriptEngine;
! import javax.script.ScriptEngineManager;
! import javax.script.SimpleBindings;
public class Test3 {
public static void main(String[] args) throws Exception {
System.out.println("\nTest3\n");
final Reader reader = new FileReader(
< prev index next >