TestNG build failing when built using latest JDK9

Mani Sarkar sadhak001 at gmail.com
Sat Mar 25 02:04:46 UTC 2017

+Adding Cedric Beust maintainer of TestNG to message

Hi All,

Before I pass on this message to the respective mailing list, I came across
this error (Caused by: java.lang.reflect.InaccessibleObjectException:
Unable to make protected java.lang.Package[]
java.lang.ClassLoader.getPackages() accessible: module java.base does not
"opens java.lang" to unnamed module @5c86a017)  in one of the TestNG build
logs [1].

I traced this issue back to [2] - seems like a gradle issue?

Has anyone else come across this elsewhere when build with *JDK-9-EA+161*,
what are the next steps in this case?



[1] https://adopt-openjdk.ci.cloudbees.com/job/TestNG/230/console
[2] https://github.com/gradle/gradle/issues/1095
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com/>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*Meet-a-Project - *MutabilityDetector
<https://github.com/MutabilityDetector>*  |  **Bitbucket
<https://bitbucket.org/neomatrix369>* * |  **Github
<https://github.com/neomatrix369>* * |  **LinkedIn
*Come to Devoxx UK 2017:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*

More information about the adoption-discuss mailing list