adoroszlai opened a new pull request, #4077: URL: https://github.com/apache/ozone/pull/4077
## What changes were proposed in this pull request? Fix error when compiling Ozone for target Java version 11: ``` $ mvn -Djavac.version=11 -DskipTests clean package ... [ERROR] hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java:[74,19] package com.sun.jmx.mbeanserver is not visible [ERROR] (package com.sun.jmx.mbeanserver is declared in module java.management, which does not export it) ``` Change _compile_ CI check so that it, in addition to using JDK of the specified version, also targets the same Java version. This way we can catch such errors in CI. https://issues.apache.org/jira/browse/HDDS-7633 ## How was this patch tested? ``` $ mvn -Djavac.version=11 -DskipTests clean package ... [INFO] BUILD SUCCESS ``` https://github.com/adoroszlai/hadoop-ozone/actions/runs/3687864892/jobs/6242414957 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
