[webbeans-issues] [JBoss JIRA] Closed: (WBRI-370) WBClassImpl does not use AnnotationType to read annotations when creating an InjectionTarget

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Aug 18 17:17:26 EDT 2009


     [ https://jira.jboss.org/jira/browse/WBRI-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WBRI-370.
--------------------------

    Resolution: Done
      Assignee: Pete Muir


> WBClassImpl does not use AnnotationType to read annotations when creating an InjectionTarget
> --------------------------------------------------------------------------------------------
>
>                 Key: WBRI-370
>                 URL: https://jira.jboss.org/jira/browse/WBRI-370
>             Project: Web Beans
>          Issue Type: Bug
>          Components: Reflection layer
>            Reporter: Kabir Khan
>            Assignee: Pete Muir
>             Fix For: 1.0.0.PREVIEW3
>
>         Attachments: test.txt
>
>
> AnnotatedType only seems to be used to read class level annotations when creating an injection target . 
> WBClassImpl<T>.of(AnnotatedType<T>, ClassTransformer) line: 134	
> ClassTransformer$2.call() line: 72	
> ClassTransformer$2.call() line: 68	
> FutureTask$Sync.innerRun() line: 269	
> FutureTask<V>.run() line: 123	
> ConcurrentCache<K,V>.putIfAbsent(K, Callable<E>) line: 125	
> ClassTransformer.loadClass(AnnotatedType<T>) line: 67	
> BeanManagerImpl.createInjectionTarget(AnnotatedType<T>) line: 1266	
> WebBeansInjector<T>.getInjectionTarget(Class<T>) line: 99	
>    public static <T> WBClass<T> of(AnnotatedType<T> annotatedType, ClassTransformer classTransformer)
>    {
>       AnnotationStore annotationStore = AnnotationStore.of(annotatedType.getAnnotations(), annotatedType.getAnnotations(), classTransformer.getTypeStore());
>       return new WBClassImpl<T>(annotatedType.getJavaClass(), annotatedType.getBaseType(), annotationStore, classTransformer);
>    }
> Later on it seems to hit the class itself so that the annotations added for members via my MDR AnnotatedType decorator do not come into effect. The attached test.txt shows this behaviour in action.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list