Skip to content

Commit

Permalink
Merge pull request #3530 from SentryMan/fix/dto-lookup
Browse files Browse the repository at this point in the history
FIX: IllegalAccessError on modular DTO queries
  • Loading branch information
rbygrave authored Dec 18, 2024
2 parents 5dc165d + 346e302 commit 49b6f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class DtoMetaConstructor {

private final Class<?>[] types;
private final MethodHandle handle;
private static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();
private static final MethodHandles.Lookup LOOKUP = MethodHandles.publicLookup();
private final ScalarType<?>[] scalarTypes;

DtoMetaConstructor(TypeManager typeManager, Constructor<?> constructor, Class<?> someClass) throws NoSuchMethodException, IllegalAccessException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

final class DtoMetaProperty implements DtoReadSet {

private static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();
private static final MethodHandles.Lookup LOOKUP = MethodHandles.publicLookup();

private final Class<?> dtoType;
private final String name;
Expand Down

0 comments on commit 49b6f3d

Please sign in to comment.