Skip to content

Commit

Permalink
[GR-28940] Fix Lookup substitution.
Browse files Browse the repository at this point in the history
PullRequest: graal/8169
  • Loading branch information
oraluben committed Feb 2, 2021
2 parents 80f6b9b + c6945a9 commit e9470e9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.lang.invoke.MethodHandles;

import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.RecomputeFieldValue;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import com.oracle.svm.core.annotate.TargetElement;
Expand Down Expand Up @@ -66,5 +67,6 @@ private MethodHandle maybeBindCaller(Target_java_lang_invoke_MemberName method,
}

@Alias @TargetElement(onlyWith = JDK16OrLater.class)//
public static final int ORIGINAL = MethodHandles.Lookup.PACKAGE << 3;
@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.FromAlias, isFinal = true)//
public static int ORIGINAL = MethodHandles.Lookup.PACKAGE << 3;
}

0 comments on commit e9470e9

Please sign in to comment.