Remove --add-opens options to workaround Java 9 visibility checks

These options are no longer needed because the problematic code in
intellij-core that was accessing these private APIs has been dealt with
in the 171 branch.

The remaining options in "Codegen Tests" run configurations are needed
because of reflection usage on JDK internals in KtUsefulTestCase
This commit is contained in:
Alexander Udalov
2017-06-26 17:23:02 +03:00
parent 40d4eeab4f
commit 5b9ee88b52
6 changed files with 3 additions and 25 deletions
-8
View File
@@ -68,14 +68,6 @@ else
[ -n "$KOTLIN_COMPILER" ] || KOTLIN_COMPILER=org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
java_args=("${java_args[@]}" "-noverify")
if [[ -n $(command -v head) && -n $(command -v tail) && $($JAVACMD -version 2>&1 | head -2 | tail -1) =~ build\ 9 ]]; then
java_args=("${java_args[@]}" \
"--add-opens" "java.base/java.lang=ALL-UNNAMED" \
"--add-opens" "java.base/java.util=ALL-UNNAMED" \
"--add-opens" "java.base/java.util.concurrent.atomic=ALL-UNNAMED" \
"--add-opens" "java.base/jdk.internal.misc=ALL-UNNAMED")
fi
kotlin_app=("${KOTLIN_HOME}/lib/kotlin-preloader.jar" "org.jetbrains.kotlin.preloading.Preloader" "-cp" "${KOTLIN_HOME}/lib/kotlin-compiler.jar" $KOTLIN_COMPILER)
fi