Skip to content

Commit

Permalink
Resolve correct type value.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Jun 3, 2021
1 parent f3c3346 commit f9bd455
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ public static JavaConstant ofDescription(Object value, TypePool typePool) {
typePool.describe(Type.getType(CLASS_DESC.descriptorString(DIRECT_METHOD_HANDLE_DESC.owner(DYNAMIC_CONSTANT_DESC.bootstrapMethod(value)))).getClassName()).resolve(),
DIRECT_METHOD_HANDLE_DESC.methodName(DYNAMIC_CONSTANT_DESC.bootstrapMethod(value)),
typePool.describe(methodType.getReturnType().getSort() == Type.ARRAY
? type.getReturnType().getInternalName().replace('/', '.')
: type.getReturnType().getClassName()).resolve(),
? methodType.getReturnType().getInternalName().replace('/', '.')
: methodType.getReturnType().getClassName()).resolve(),
parameterTypes),
arguments);
} else {
Expand Down

0 comments on commit f9bd455

Please sign in to comment.