You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2017/02/28 22:38:08 UTC
[lang] LANG-1265: Build failures when building with Java 9 EA (closes
#244)
Repository: commons-lang
Updated Branches:
refs/heads/master c79e6fb8f -> 72476ff46
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.
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/72476ff4
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/72476ff4
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/72476ff4
Branch: refs/heads/master
Commit: 72476ff4620559b33a23aabba9eaec3b4330208e
Parents: c79e6fb
Author: pascalschumacher <pa...@gmx.net>
Authored: Fri Feb 24 18:51:03 2017 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Tue Feb 28 23:37:26 2017 +0100
----------------------------------------------------------------------
pom.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-lang/blob/72476ff4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 0d06563..d467ecd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -810,6 +810,17 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>java9</id>
+ <activation>
+ <jdk>9</jdk>
+ </activation>
+ <properties>
+ <!-- LANG-1265: allow tests to access private fields/methods of java.base classes via reflection -->
+ <argLine>-Xmx512m --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
+ </properties>
+ </profile>
</profiles>
</project>