Skip to content

Commit

Permalink
Update Fake.class to support OpenJ9 Field Layout
Browse files Browse the repository at this point in the history
Currently lombok crashes when building with OpenJ9 JDK as described in #2414
It is due to the `override` field offset from Fake.class doesn't match actual offset value for AccessibleObject.class in OpenJ9 
This change is to support the OpenJ9 Field layout algorithm.
  • Loading branch information
fengxue-IS authored and rspilker committed May 28, 2020
1 parent 265c56d commit cd0af7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/lombok/permit/Permit.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ private static long getOverrideFieldOffset() throws Throwable {

static class Fake {
boolean override;
Object accessCheckCache;
}

public static Method getMethod(Class<?> c, String mName, Class<?>... parameterTypes) throws NoSuchMethodException {
Expand Down

0 comments on commit cd0af7a

Please sign in to comment.