Clone
Bo Zhang <bo@gradle.com>
committed
on 27 Jun 18
Use Lookup instead of reflection on Java 9+ (#5749)
In `4.8` we have two `illegal-access` warning on Java 9+. This PR uses Java 9 API to eli… Show more
Use Lookup instead of reflection on Java 9+ (#5749)

In `4.8` we have two `illegal-access` warning on Java 9+. This PR uses Java 9 API to eliminate these warning. However, the consequence is, we need Java 9 compiler to compile the specific subproject `base-servces-java9`.

On Java 9+, `MethodHandles.Lookup` is used to invoke protected methods `ClassLoader.defineClass` and `ClassLoader.getDefinedPackage`. Show less

master + 417 more