-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Allowing @interfaces to behave more like normal interfaces would enable some implementation of functionality. This would allow the implementation of e.g. validation methods in the annotation object, instead of interpreting the values carried by the annotation. If would also be another nice application of pattern matching for instanceof.
like @interface Validator { default void validate(Object v) throws ValidationException {....}} with some implementation
Allowing @interfaces to behave more like normal interfaces would enable some implementation of functionality. This would allow the implementation of e.g. validation methods in the annotation object, instead of interpreting the values carried by the annotation. If would also be another nice application of pattern matching for instanceof.
like @interface Validator { default void validate(Object v) throws ValidationException {....}} with some implementation