[weld-issues] [JBoss JIRA] Commented: (WELD-811) Hierarchy injection is not working with external annotation type.

Rogerio Baldini (JIRA) jira-events at lists.jboss.org
Wed Dec 29 06:56:17 EST 2010


    [ https://issues.jboss.org/browse/WELD-811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572460#comment-12572460 ] 

Rogerio Baldini commented on WELD-811:
--------------------------------------

This method complements annotation of class, setting some default values.
	

    protected <X> AnnotatedType<X> wrapAnnotatedType(final AnnotatedType<X> at) {

		return new AnnotatedType<X>() {
			@Override
			public Set<Annotation> getAnnotations() {
				Set<Annotation> annotations = new HashSet<Annotation>(at.getAnnotations());
				String defaultPathLiteral = at.getJavaClass()+"*";
				annotations.add(new PlcUriPath(defaultPathLiteral));
				return annotations;
			}
			...
		}
	}	

> Hierarchy injection is not working with external annotation type.
> -----------------------------------------------------------------
>
>                 Key: WELD-811
>                 URL: https://issues.jboss.org/browse/WELD-811
>             Project: Weld
>          Issue Type: Bug
>          Components: Weld SPI
>    Affects Versions: 1.1.0.CR3
>            Reporter: Rogerio Baldini
>
> In WeldClassImpl constructor, superclass is set as an Object.class when annotatedType is instanceof ExternalAnnotatedType (discovered flag). Why?
> This behavior causes a non injection of superclasses fields and methods. Is this correct ?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list