[weld-issues] [JBoss JIRA] (WELD-1062) Superclass of a modified AnnotatedType is ignored

Gert Palok (JIRA) jira-events at lists.jboss.org
Wed Feb 29 09:22:36 EST 2012


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

Gert Palok commented on WELD-1062:
----------------------------------

Thanks!

In my project I copied WeldClassImpl and replaced relevant code with:
{code}
if (rawType.getSuperclass() != null) {
    this.superclass = classTransformer.loadClass(rawType.getSuperclass());
} else if (modified) {
    this.superclass = classTransformer.loadClass(Object.class);
} else {
    this.superclass = null;
}
{code}

But since I couldn't get the tests running, I was unable to verify the fix
                
> Superclass of a modified AnnotatedType is ignored
> -------------------------------------------------
>
>                 Key: WELD-1062
>                 URL: https://issues.jboss.org/browse/WELD-1062
>             Project: Weld
>          Issue Type: Bug
>    Affects Versions: 1.1.5.Final, 2.0.0.Alpha1
>            Reporter: Gert Palok
>            Assignee: Ales Justin
>         Attachments: annotatedtype-superclass.zip
>
>
> When modifying an AnnotatedType in ProcessAnnotatedType event, the resulting Bean instance will have Object as its superclass instead of the real superclass, causing inherited injection points to be ignored

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list