base-services-java9.gradle.kts

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Revert "Use Lookup instead of reflection on Java 9+ (#5749)"

This reverts commit 3db6e256987053171178aa96a0ef46caedc8d1a4.

  1. … 16 more files in changeset.
Revert "Use Lookup instead of reflection on Java 9+ (#5749)"

This reverts commit 3db6e256987053171178aa96a0ef46caedc8d1a4.

This causes IDE import broken.

  1. … 16 more files in changeset.
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`.

    • -0
    • +36
    ./base-services-java9.gradle.kts
  1. … 16 more files in changeset.
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`.

  1. … 16 more files in changeset.