rohanag12 opened a new issue #3266: Java 9+ build support URL: https://github.com/apache/incubator-heron/issues/3266 JDK 11 is the current LTS Java release. JDK 8 will no longer receive public security updates. Heron should be made compatible with Java 9+. Currently state is that the Heron project does not compile with JDK 9 or higher. The first error that I see when trying to build with JDK 11 is this - ``` bazel build heron/... WARNING: Running Bazel server needs to be killed, because the startup options are different. WARNING: Waiting for server process to terminate (waited 5 seconds, waiting at most 60) Starting local Bazel server and connecting to it... WARNING: /home/ubuntu/incubator-heron/heron/healthmgr/tests/java/BUILD:52:12: in srcs attribute of java_library rule //heron/healthmgr/tests/java:healthmgr-tests: please do not import '//heron/healthmgr/src/java:org/apache/heron/healthmgr/HealthManager.java' directly. You should either move the file to this package or depend on an appropriate rule there INFO: Analyzed 609 targets (299 packages loaded, 4190 targets configured). INFO: Found 609 targets... INFO: Deleting stale sandbox base /home/ubuntu/.cache/bazel/_bazel_rohan/6ae13315cd4f4a72906d48bc12f08d52/sandbox ERROR: /home/ubuntu/incubator-heron/heron/api/src/java/BUILD:22:1: Building heron/api/src/java/libapi-java-low-level.jar (130 source files) failed (Exit 1) heron/api/src/java/org/apache/heron/api/Config.java:31: error: package javax.xml.bind does not exist import javax.xml.bind.DatatypeConverter; ^ heron/api/src/java/org/apache/heron/api/Config.java:698: error: cannot find symbol optsBase64 = DatatypeConverter.printBase64Binary( ^ symbol: variable DatatypeConverter location: class Config heron/api/src/java/org/apache/heron/api/Config.java:700: error: cannot find symbol componentBase64 = DatatypeConverter.printBase64Binary( ^ symbol: variable DatatypeConverter location: class Config INFO: Elapsed time: 78.103s, Critical Path: 53.08s INFO: 66 processes: 40 local, 26 worker. FAILED: Build did NOT complete successfully ``` Will try to fix this and build again, will keep this thread updated. If anyone has successfully tried building Heron with JDK 11, any pointers would be appreciated.
---------------------------------------------------------------- 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
