You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KotlinReflectionParameterNameDiscoverer filters out any parameters that are not of type KParameter.Kind.VALUE.
This works fine, except if you have an extension method inside a class, like this:
classExample {
// this method will look like doSomething(String) in the bytecode and to JavafunString.doSomething()
}
The extension receiver (KParameter.Kind.EXTENSION_RECEIVER) parameter must not be ignored here, since as far as Java code is concerned, this is a regular parameter.
I noticed this problem in combination with Hibernate Validator, which will throw an ArrayIndexOutOfBoundsException when analyzing such a method.
I am in the process of creating a pull request to fix this issue and will update this ticket when it is submitted.