[
http://jira.jboss.com/jira/browse/JBSEAM-2316?page=comments#action_12389725 ]
Dan Allen commented on JBSEAM-2316:
-----------------------------------
I'm not even sure its possible with type erasure. You can only get information about
types that are used in the *definition* of a class, not that are supplied a type
parameters when *creating* and instance of the class.
Basically, we need to find another way to do this, or just return null.
EntityHome#getEntityClass() returns EntityManager.class rather than
entity class
--------------------------------------------------------------------------------
Key: JBSEAM-2316
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2316
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.GA
Reporter: Dan Allen
Priority: Minor
Fix For: 2.0.1.GA
Original Estimate: 2 hours
Remaining Estimate: 2 hours
This is a strange one. The getEntityClass() is returning the wrong type parameter. It
should be returning the first but it is instead returning the second.
You will discover that this assertion fails.
assert new EntityHome<SimpleEntity>().getEntityClass() == SimpleEntity.class;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira