jdk/test/javax/script/Test1.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.
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 6249843 6705893
    26  * @bug 6249843 6705893
    27  * @summary Create JavaScript engine and execute a simple script.
    27  * @summary Create JavaScript engine and execute a simple script.
    28  * Tests script engine discovery mechanism.
    28  * Tests script engine discovery mechanism.
       
    29  * @modules jdk.scripting.nashorn
    29  */
    30  */
    30 
    31 
    31 import javax.script.*;
    32 import java.io.File;
    32 import java.io.*;
    33 import java.io.FileReader;
       
    34 import javax.script.ScriptEngine;
       
    35 import javax.script.ScriptEngineManager;
    33 
    36 
    34 public class Test1  {
    37 public class Test1  {
    35         public static void main(String[] args) throws Exception {
    38         public static void main(String[] args) throws Exception {
    36             System.out.println("\nTest1\n");
    39             System.out.println("\nTest1\n");
    37             ScriptEngineManager manager = new ScriptEngineManager();
    40             ScriptEngineManager manager = new ScriptEngineManager();