[jboss-jira] [JBoss JIRA] (AS7-2559) Make HibernateAnnotationScanning more lenient in handling annotated entities
Brian Stansberry (Updated) (JIRA)
jira-events at lists.jboss.org
Mon Nov 21 10:07:40 EST 2011
[ https://issues.jboss.org/browse/AS7-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated AS7-2559:
----------------------------------
Fix Version/s: 7.1.0.CR1
(was: 7.1.0.Beta1)
> 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.CR1
>
>
> 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