From 72476ff4620559b33a23aabba9eaec3b4330208e Mon Sep 17 00:00:00 2001 From: pascalschumacher Date: Fri, 24 Feb 2017 18:51:03 +0100 Subject: [PATCH] LANG-1265: Build failures when building with Java 9 EA (closes #244) Fix build on Java 9 Build 157 by adding a java-9 maven profile. This is activated by default on Java 9 and opens up java.base classes for reflection, which makes all unit tests pass. --- pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pom.xml b/pom.xml index 0d06563bb..d467ecda5 100644 --- a/pom.xml +++ b/pom.xml @@ -810,6 +810,17 @@ + + + java9 + + 9 + + + + -Xmx512m --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED + +