Skip to content

Commit

Permalink
Merge pull request #36 from SourceWriters/development
Browse files Browse the repository at this point in the history
Fixed JavaAccessor using lookup field instead of lookup() method
  • Loading branch information
Lauriichan authored Jan 23, 2022
2 parents e025804 + c806f30 commit 891248c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Object initialize(Constructor<?> constructor, Object... arguments) {
}
try {
if (arguments.length == 0) {
return lookup.unreflectConstructor(constructor).invoke();
return lookup().unreflectConstructor(constructor).invokeWithArguments();
}
return lookup().unreflectConstructor(constructor).invokeWithArguments(arguments);
} catch (Throwable e) {
Expand Down

0 comments on commit 891248c

Please sign in to comment.