jdk/test/javax/script/Test7.java
changeset 40941 e9970aac41d9
parent 5506 202f599c92aa
equal deleted inserted replaced
40940:1413b2ff89e4 40941:e9970aac41d9
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 6249843 6705893
    26  * @bug 6249843 6705893
    27  * @summary Tests importPackage and java access in script
    27  * @summary Tests importPackage and java access in script
       
    28  * @modules jdk.scripting.nashorn
    28  */
    29  */
    29 
    30 
    30 import java.io.*;
    31 import java.io.File;
    31 import javax.script.*;
    32 import java.io.FileReader;
       
    33 import java.io.Reader;
       
    34 import javax.script.ScriptEngine;
       
    35 import javax.script.ScriptEngineManager;
    32 
    36 
    33 public class Test7 {
    37 public class Test7 {
    34         public static void main(String[] args) throws Exception {
    38         public static void main(String[] args) throws Exception {
    35             System.out.println("\nTest7\n");
    39             System.out.println("\nTest7\n");
    36             File file =
    40             File file =