correctly calculate the number of mask arguments required for a method with default arguments
#KT-6816 Fixed
This commit is contained in:
@@ -708,7 +708,7 @@ public class JetTypeMapper {
|
||||
@NotNull
|
||||
public static String getDefaultDescriptor(@NotNull Method method, boolean isExtension) {
|
||||
String descriptor = method.getDescriptor();
|
||||
int argumentsCount = (Type.getArgumentsAndReturnSizes(descriptor) >> 2) - 1;
|
||||
int argumentsCount = Type.getArgumentTypes(descriptor).length;
|
||||
if (isExtension) {
|
||||
argumentsCount--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user