[ 
https://issues.apache.org/jira/browse/SOLR-15876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470093#comment-17470093
 ] 

Uwe Schindler edited comment on SOLR-15876 at 1/6/22, 6:19 PM:
---------------------------------------------------------------

This is only half-true: The opens are there -Spotbugs- Spotless runs inside the 
Gradle JVM so the opens are available! But on Jenkins setups it runs gradle 
with JDK 11 and only the compilation is done with JDK 16, 17 or 18 using the 
environment variable RUNTIME_JAVA_HOME. This causes the compilation to be 
forked and executed in a separate JVM (as its different), but there the problem 
that Gradle does not apply the opens to forked "javac".

To fix this you have to change the compilation task. You can easily test if you 
run gradle with JDK 11 (as you should) and only execute tests with JDK 18 (e.g. 
RUNTIME_JAVA_HOME=/path/to/jdk-8-ea-b29)

So please let the revert in, theres no workround due to the fact that Jenkins 
needs a "fixed" Gradle JVM (11) and only runs tests in the runner JVM. 
Otherwise we can't test JDK 18, 19 prereleases and other stuff (because Gradle 
is not able to run with those versions).


was (Author: thetaphi):
This is only half-true: Spotbugs runs inside the Gradle JVM so the opens are 
available! But on Jenkins setups it runs gradle with JDK 11 and only the 
compilation is done with JDK 16, 17 or 18 using the environment variable 
RUNTIME_JAVA_HOME. This causes the compilation to be forked and executed in a 
separate JVM (as its different), but there the problem that Gradle does not 
apply the opens to forked "javac".

To fix this you have to change the compilation task.

So please let the revert in, theres no workround due to the fact that Jenkins 
needs a "fixed" Gradle JVM (11) and only runs tests in the runner JVM. 
Otherwise we can't test JDK 18, 19 prereleases and other stuff (because Gradle 
is not able to run with those versions).

> Update to error-prone 2.10
> --------------------------
>
>                 Key: SOLR-15876
>                 URL: https://issues.apache.org/jira/browse/SOLR-15876
>             Project: Solr
>          Issue Type: Task
>            Reporter: Mike Drob
>            Assignee: Mike Drob
>            Priority: Major
>             Fix For: 9.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to