Support X10 build with Java 10

Description

Doing a fresh checkout of x10 from git, and then an ant build, with JAVA_HOME set to:
JAVA_HOME = '/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home'

gives lots of errors starting with:

{{
build-java:
[ejc] Compiling 723 source files to /Users/vijaysaraswat/code/GitHub/x10/x10.runtime/classes
[ejc] Annotation processing got disabled, since it requires a 1.6 compliant JVM
[ejc] ----------
[ejc] 1. ERROR in /Users/vijaysaraswat/code/GitHub/x10/x10.runtime/src-java/gen/x10/array/Array.java (at line 1)
[ejc] package x10.array;
[ejc] ^
[ejc] The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files}}

But build is successful with JDK 9.0.1.

Environment

MacOS 10.13.2 JDK 10.0.1

Status

Assignee

DaveG

Reporter

Vijay Saraswat

Labels

Components

Affects versions

Priority

Medium
Configure