You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Test] Workaround stdlib duplication in AbstractJavaModulesIntegrationTest
These tests invoke CLI compiler and pass the stdlib/reflect as part of
the modular classpath. But at the same time CLI compiler itself adds
stdlib and reflect from `dist`, as `-no-stdlib` flag was not passed.
After setting the `compiler-tests-convention` gradle plugin, stdlib
and reflect paths are set via system property to jars produced by
building corresponding modules, not from `dist`, which caused the
compiler to report warnings about duplicated libraries on the classpath.
The workaround is to use libraries from dist ignoring the environment
properties.
Copy file name to clipboardExpand all lines: compiler/test-infrastructure-utils/testFixtures/org/jetbrains/kotlin/codegen/forTestCompile/ForTestCompileRuntime.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,16 @@ public static File runtimeJarForTests() {
0 commit comments