srowen commented on issue #25423: [SPARK-28701][test-java11][k8s] adding java11 support for pull request builds URL: https://github.com/apache/spark/pull/25423#issuecomment-521754374 The issue is the bootclasspath. If you build with Java 11's bootclasspath, it won't work on 8 anymore even with `-target 8`. (The original error above is exactly this type of problem). However, it sounds like Java 11 supports a `-release 8` flag that not only sets source/target, but uses 8's bootclasspath (surprises me - does it have, like, the rt.jar from many previous JDKs?) If that's correct then it should be OK to compile with Java 11 and specify `-release 8`. But, I don't see that `scalac` supports it, so I don't believe it's an option. We're going to need both JDKs as far as I can tell.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
