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.Beta1
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