Java 9 reflection changes
Add java9 maven profile which is enable on java 9. This profile open up some packages of the java.base module for access via reflection in order to fix test failures on java 9.
<properties>
<additionalparam />
</properties>
+
+ <profiles>
+ <profile>
+ <id>java9</id>
+ <activation>
+ <jdk>9</jdk>
+ </activation>
+ <properties>
+ <!-- allow tests to access private fields/methods of java.base classes via reflection -->
+ <argLine>--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED</argLine>
+ </properties>
+ </profile>
+ </profiles>
</project>
