[webbeans-dev] AnnotationLiteral -- must be direct subclass

Pete Muir pmuir at bleepbleep.org.uk
Thu Oct 23 09:26:10 EDT 2008


Any reason why we require

       if (!(getClass().getSuperclass() == AnnotationLiteral.class))
       {
          throw new RuntimeException(
                "Not a direct subclass of AnnotationLiteral");
       }

this stops me using annotation literals as an anonymous inner class  
AFACIT (as you can't use implement when defining one).



More information about the weld-dev mailing list