Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public MethodHandle getInjectHandle(LinkageContext linkageContext) {
// unreflect should always succeed due to the setAccessible call in the constructor.
// (T, V)->void
var handle = InternalMethodHandles.unreflectSetter(field);
// Add an ignored receiver if there is no reciever parameter (aka it is a static field).
// Add an ignored receiver if there is no receiver parameter (aka it is a static field).
if (Modifier.isStatic(field.getModifiers())) {
handle = MethodHandles.dropArguments(handle, 0, Object.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public MethodHandle getInjectHandle(
LinkageContext linkageContext, MethodHandle[] parameterHandles) {
// Invoke the handle with the parameters.
// The signature is now:
// (InternalContext, Object reciever)-R
// (InternalContext, Object receiver)-R
var handle =
InternalMethodHandles.catchErrorInMethodAndRethrowWithSource(
fastMethodHandle, injectionPoint);
Expand Down