Skip to content

Commit

Permalink
Reference#refersTo
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed May 13, 2024
1 parent b384d77 commit 1b52f85
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official
org.gradle.jvmargs=-Xmx4G
org.gradle.parallel=true

version=0.2.0
version=0.2.1

asm_version=9.7

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package xyz.wagyourtail.jvmdg.j16.stub.java_base;

import xyz.wagyourtail.jvmdg.version.Stub;

import java.lang.ref.Reference;

public class J_L_R_Reference {

@Stub
public static boolean refersTo(Reference<?> ref, Object o) {
return ref.get() == o;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void init() {
// ElementType
// MethodHandles
// VarHandle
// Reference
stub(J_L_R_Reference.class);
// InvocationHandler
stub(J_L_R_RecordComponent.class);
stub(J_N_ByteBuffer.class);
Expand Down

0 comments on commit 1b52f85

Please sign in to comment.