Clone
Pepper Lebeck-Jobe <pepper@gradle.com>
committed
on 23 May 17
Find loaded packages in a Java 9 compatible way
We can use reflection to look up the Java 9 friendly public method
`getDefinedPackages()`. I… Show more
Find loaded packages in a Java 9 compatible way

We can use reflection to look up the Java 9 friendly public method

`getDefinedPackages()`. If it doesn't exist, then we must not be

running on Java 9, and we should expect to be able to access the

protected `getPacakges` method since that isn't outlawed before Java

9.

Show less

master + 515 more