Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a lookup() for field access in static constant
This field access appears to trigger a bug in Java 8 and 11 (at least) leading to linkage errors and classes leaking across classloaders when a method handle is resolved at static initialization time. See jruby#7911 The change here provides a local MethodHandles.Lookup object rather than using a publicLookup() to acquire the field handle. This may work around whatever the JDK bug was. Fixes jruby#7911
- Loading branch information