Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282717

allow @interfaces to behave more as java 8 interfaces, allowing default and stat

XMLWordPrintable

      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


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: