KT-3561 Bad RuntimeInvisibleParameterAnnotations on attempt to annotate enum constructor hidden parametrs - name and ordinal
This commit is contained in:
@@ -385,6 +385,9 @@ public class FunctionCodegen extends GenerationStateAware {
|
||||
if (kind == JvmMethodParameterKind.VALUE) {
|
||||
parameterDescriptor = valueParameters.next();
|
||||
parameterName = parameterDescriptor.getName().getName();
|
||||
} else if (kind == JvmMethodParameterKind.ENUM_NAME || kind == JvmMethodParameterKind.ENUM_ORDINAL) {
|
||||
//we shouldn't generate annotations for invisible in runtime parameters otherwise we get bad RuntimeInvisibleParameterAnnotations error in javac
|
||||
continue;
|
||||
} else if (needIndexForVar(kind)) {
|
||||
parameterName = parameterName + "$" + i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user