[webbeans-dev] AnnotationLiteral -- must be direct subclass
Pete Muir
pmuir at bleepbleep.org.uk
Thu Oct 23 16:59:35 EDT 2008
See the commented out method in - https://svn.jboss.org/repos/webbeans/ri/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java
- if you swap the methods and remove the exception, it works.
On 23 Oct 2008, at 21:48, Gavin King wrote:
> 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
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
More information about the weld-dev
mailing list