8193779: Fix copyright header in nashorn builtin scripts

Reviewed-by: alanb, hannesw
This commit is contained in:
Athijegannathan Sundararajan 2017-12-19 21:35:30 +05:30
parent f711280a47
commit 281beca855
3 changed files with 9 additions and 5 deletions

View File

@ -4,7 +4,9 @@
* *
* This code is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. * published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
* *
* This code is distributed in the hope that it will be useful, but WITHOUT * This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

View File

@ -4,7 +4,9 @@
* *
* This code is free software; you can redistribute it and/or modify it * 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 * under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. * published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
* *
* This code is distributed in the hope that it will be useful, but WITHOUT * This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

View File

@ -1,12 +1,12 @@
class jdk.nashorn.javaadapters.javax_script_ScriptContext class jdk.nashorn.javaadapters.javax_script_ScriptContext
TypeError: Java.extend needs at least one type argument. in nashorn:mozilla_compat.js at line number 39 TypeError: Java.extend needs at least one type argument. in nashorn:mozilla_compat.js at line number 41
class jdk.nashorn.javaadapters.java_util_ArrayList class jdk.nashorn.javaadapters.java_util_ArrayList
class jdk.nashorn.javaadapters.java_util_ArrayList class jdk.nashorn.javaadapters.java_util_ArrayList
[JavaClass java.lang.Integer] [JavaClass java.lang.Integer]
TypeError: [object JavaPackage] is not a Java class in nashorn:mozilla_compat.js at line number 373 at column number 16 TypeError: [object JavaPackage] is not a Java class in nashorn:mozilla_compat.js at line number 375 at column number 16
[JavaClass java.util.HashSet] [JavaClass java.util.HashSet]
[JavaClass java.util.HashSet] [JavaClass java.util.HashSet]
[JavaClass java.lang.Integer] [JavaClass java.lang.Integer]
ReferenceError: "Integer" is not defined in nashorn:mozilla_compat.js at line number 67 ReferenceError: "Integer" is not defined in nashorn:mozilla_compat.js at line number 69
[JavaClass java.util.HashMap] [JavaClass java.util.HashMap]
[JavaClass java.util.HashMap] [JavaClass java.util.HashMap]