-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
476a43b
commit 9806e5c
Showing
5 changed files
with
137 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package lombok.permit.dummy; | ||
|
||
@SuppressWarnings("all") | ||
public abstract class Child extends Parent { | ||
private transient volatile boolean foo; | ||
private transient volatile Object[] bar; | ||
private transient volatile Object baz; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package lombok.permit.dummy; | ||
|
||
@SuppressWarnings("all") | ||
public final class GrandChild extends Child { | ||
private Class<?> a; | ||
private int b; | ||
private String c; | ||
private Class<?> d; | ||
private Class<?>[] e; | ||
private Class<?>[] f; | ||
private int g; | ||
private transient String h; | ||
private transient Object i; | ||
private byte[] j; | ||
private byte[] k; | ||
private byte[] l; | ||
private volatile Object m; | ||
private Object n; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package lombok.permit.dummy; | ||
|
||
import java.io.OutputStream; | ||
|
||
@SuppressWarnings("all") | ||
public class Parent { | ||
boolean first; | ||
static final Object staticObj = OutputStream.class; | ||
volatile Object second; | ||
private static volatile boolean staticSecond; | ||
private static volatile boolean staticThird; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* This package recreates the type hierarchy of {@code java.lang.reflect.AccessibleObject} and friends (such as {@code java.lang.reflect.Method}); | ||
* its purpose is to allow us to ask {@code sun.misc.internal.Unsafe} about the exact offset of the {@code override} field of {@code AccessibleObject}; | ||
* asking about that field directly doesn't work after jdk14, presumably because the fields of AO are expressly hidden somehow. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
* | ||
* NB: It's usually 12, on the vast majority of OS, VM, and architecture combos. | ||
*/ | ||
package lombok.permit.dummy; |
AccessibleObject.override
was hidden in JDK 12: https://bugs.openjdk.java.net/browse/JDK-8210522