8188023: Avoid -source and -target javac options in nashorn ant compilation
Reviewed-by: jlaskey, hannesw
This commit is contained in:
parent
047f60b678
commit
a00dba8a16
@ -174,8 +174,6 @@
|
||||
<target name="compile" depends="prepare" description="Compiles nashorn">
|
||||
<javac srcdir="${dynalink.module.src.dir}"
|
||||
destdir="${dynalink.module.classes.dir}"
|
||||
source="${javac.source}"
|
||||
target="${javac.target}"
|
||||
debug="${javac.debug}"
|
||||
encoding="${javac.encoding}"
|
||||
includeantruntime="false" fork="true">
|
||||
@ -190,8 +188,6 @@
|
||||
</delete>
|
||||
<javac srcdir="${nashorn.module.src.dir}"
|
||||
destdir="${nashorn.module.classes.dir}"
|
||||
source="${javac.source}"
|
||||
target="${javac.target}"
|
||||
debug="${javac.debug}"
|
||||
encoding="${javac.encoding}"
|
||||
includeantruntime="false" fork="true">
|
||||
@ -207,8 +203,6 @@
|
||||
</delete>
|
||||
<javac srcdir="${nashorn.shell.module.src.dir}"
|
||||
destdir="${nashorn.shell.module.classes.dir}"
|
||||
source="${javac.source}"
|
||||
target="${javac.target}"
|
||||
debug="${javac.debug}"
|
||||
encoding="${javac.encoding}"
|
||||
includeantruntime="false" fork="true">
|
||||
@ -342,8 +336,6 @@
|
||||
<javac srcdir="${test.src.dir}"
|
||||
destdir="${build.test.classes.dir}"
|
||||
classpath="${javac.test.classpath}"
|
||||
source="${javac.source}"
|
||||
target="${javac.target}"
|
||||
debug="${javac.debug}"
|
||||
encoding="${javac.encoding}"
|
||||
includeantruntime="false" fork="true">
|
||||
@ -351,7 +343,7 @@
|
||||
<compilerarg value="-Xlint:unchecked"/>
|
||||
<compilerarg value="-Xlint:deprecation"/>
|
||||
<compilerarg value="-Xdiags:verbose"/>
|
||||
<compilerarg line="${test.module.imports}"/>
|
||||
<compilerarg line="${test.module.imports.compile.time}"/>
|
||||
</javac>
|
||||
|
||||
<copy todir="${build.test.classes.dir}/META-INF/services">
|
||||
|
@ -24,8 +24,6 @@ application.title=nasgen
|
||||
|
||||
# source and target levels
|
||||
build.compiler=modern
|
||||
javac.source=1.7
|
||||
javac.target=1.7
|
||||
|
||||
# This directory is removed when the project is cleaned:
|
||||
nasgen.build.dir=../../../../build/nashorn/nasgen
|
||||
|
@ -24,8 +24,6 @@ application.title=nashorntask
|
||||
|
||||
# source and target levels
|
||||
build.compiler=modern
|
||||
javac.source=1.8
|
||||
javac.target=1.8
|
||||
|
||||
# This directory is removed when the project is cleaned:
|
||||
nashorntask.build.dir=../../../../build/nashorn/nashorntask
|
||||
|
@ -32,8 +32,6 @@ jdk.jline.src.dir=src/jdk.internal.le/share/classes
|
||||
|
||||
# source and target levels
|
||||
build.compiler=modern
|
||||
javac.source=1.9
|
||||
javac.target=1.9
|
||||
|
||||
javadoc.option=\
|
||||
-tag "implSpec:a:Implementation Requirements:" \
|
||||
@ -146,7 +144,7 @@ javac.test.classpath=\
|
||||
${file.reference.bsh.jar}${path.separator}\
|
||||
${file.reference.snakeyaml.jar}
|
||||
|
||||
test.module.imports=\
|
||||
test.module.imports.compile.time=\
|
||||
--add-exports jdk.scripting.nashorn/jdk.nashorn.internal.ir=ALL-UNNAMED \
|
||||
--add-exports jdk.scripting.nashorn/jdk.nashorn.internal.codegen=ALL-UNNAMED \
|
||||
--add-exports jdk.scripting.nashorn/jdk.nashorn.internal.parser=ALL-UNNAMED \
|
||||
@ -159,7 +157,10 @@ test.module.imports=\
|
||||
--add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp=ALL-UNNAMED \
|
||||
--add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp.joni=ALL-UNNAMED \
|
||||
--add-exports jdk.scripting.nashorn/jdk.nashorn.tools=ALL-UNNAMED \
|
||||
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
|
||||
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
|
||||
|
||||
test.module.imports.runtime=\
|
||||
${test.module.imports.compile.time} \
|
||||
--add-opens jdk.scripting.nashorn/jdk.nashorn.internal.runtime=ALL-UNNAMED \
|
||||
--add-opens jdk.scripting.nashorn/jdk.nashorn.internal.runtime.doubleconv=ALL-UNNAMED
|
||||
|
||||
@ -359,7 +360,7 @@ run.test.user.country=TR
|
||||
|
||||
run.test.jvmargs.common=\
|
||||
-server \
|
||||
${test.module.imports} \
|
||||
${test.module.imports.runtime} \
|
||||
${run.test.jvmargs.external} \
|
||||
--add-modules jdk.scripting.nashorn.shell \
|
||||
${nashorn.override.option} \
|
||||
|
@ -336,6 +336,7 @@ public final class Source implements Loggable {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("try")
|
||||
protected void loadMeta() throws IOException {
|
||||
if (length == 0 && lastModified == 0) {
|
||||
final URLConnection c = url.openConnection();
|
||||
|
@ -28,6 +28,7 @@ package jdk.nashorn.test.models;
|
||||
@SuppressWarnings("javadoc")
|
||||
public class ClassWithFinalFinalizer {
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
protected final void finalize() {
|
||||
//empty
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user