On Tue, 8 Sep 2020 16:08:20 GMT, Vicente Romero <vrom...@openjdk.org> wrote:
>> 8250840: some tests use --enable-preview unnecessarily > > test/langtools/tools/javac/ConditionalExpressionResolvePending.java line 38: > >> 36: * @build combo.ComboTestHelper >> 37: * @compile ConditionalExpressionResolvePending.java >> 38: * @run main/othervm --enable-preview ConditionalExpressionResolvePending > > do you still need the @run main/othervm? Yes, that's still needed. The test internally compiles some code with --enable-preview and then tries to load and run the code in a separate ClassLoader in the same VM. So --enable-preview at runtime is required. ------------- PR: https://git.openjdk.java.net/jdk/pull/41