[jboss-jira] [JBoss JIRA] (AS7-2559) Make HibernateAnnotationScanning more lenient in handling annotated entities

Stuart Douglas (Resolved) (JIRA) jira-events at lists.jboss.org
Tue Jan 3 01:42:09 EST 2012


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

Stuart Douglas resolved AS7-2559.
---------------------------------

    Resolution: Done


This seems to have been fixed
                
> Make HibernateAnnotationScanning more lenient in handling annotated entities
> ----------------------------------------------------------------------------
>
>                 Key: AS7-2559
>                 URL: https://issues.jboss.org/browse/AS7-2559
>             Project: Application Server 7
>          Issue Type: Bug
>    Affects Versions: 7.1.0.Alpha1
>            Reporter: Marius Bogoevici
>            Assignee: Marius Bogoevici
>             Fix For: 7.1.0.Final
>
>
> Frameworks such as Spring Roo may place @Entity annotations via bytecode manipulation (since compilation is impossible) on methods, as in:
> {code}
> @Aspect
> @ajcPrivileged
> public class Owner_Roo_Entity
> {
>  
> ....
>   @Entity
>   @ajcDeclareAnnotation(pattern="com.springsource.petclinic.domain.Owner", annotation="@Entity", kind="at_type")
>   void ajc$declare_at_type_1()
>   {
>   }
> ....
> }
> {code}
> This causes HibernateAnnotationScanner to crash with a CNFE on 'ajc$declare_at_type_1'.
> Solution: make HibernateAnnotationScanner ignore these

--
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 jboss-jira mailing list