The annotation lookup methods in ParameterContext should invoke Parameter-specific methods in AnnotationUtils in order to work around a bug in javac in versions of Java prior to Java 9; however, the default methods introduced in acb6e65 accidentally invoke the generic AnnotatedElement variants in AnnotationUtils which do not provide support for that workaround.
Although the overridden variants of those default methods in DefaultParameterContext invoke the correct methods in AnnotationUtils, we should still fix the implementations in the default methods in the ParameterContext interface in case someone relies on the default methods while testing, mocking, etc.
The annotation lookup methods in
ParameterContextshould invokeParameter-specific methods inAnnotationUtilsin order to work around a bug injavacin versions of Java prior to Java 9; however, thedefaultmethods introduced in acb6e65 accidentally invoke the genericAnnotatedElementvariants inAnnotationUtilswhich do not provide support for that workaround.Although the overridden variants of those default methods in
DefaultParameterContextinvoke the correct methods inAnnotationUtils, we should still fix the implementations in thedefaultmethods in theParameterContextinterface in case someone relies on the default methods while testing, mocking, etc.