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

Gavin King gavin at hibernate.org
Thu Oct 23 16:48:28 EDT 2008


Fix it and send me the right class.

On Thu, Oct 23, 2008 at 8:26 AM, Pete Muir <pmuir at bleepbleep.org.uk> wrote:
> 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).
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



More information about the weld-dev mailing list