8263763: Synthetic constructor parameters of enum are not considered for annotation indices

Reviewed-by: darcy, jfranck
This commit is contained in:
Rafael Winterhalter 2021-04-12 21:01:08 +00:00 committed by Joe Darcy
parent 1ee80e03ad
commit 9dd96257c6
4 changed files with 73 additions and 9 deletions

View file

@ -760,7 +760,7 @@ public final class Method extends Executable {
}
@Override
boolean handleParameterNumberMismatch(int resultLength, int numParameters) {
boolean handleParameterNumberMismatch(int resultLength, Class<?>[] parameterTypes) {
throw new AnnotationFormatError("Parameter annotations don't match number of parameters");
}
}