Skip to content

Default methods in ParameterContext should invoke Parameter-specific methods in AnnotationUtils #5657

@sbrannen

Description

@sbrannen

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions