This content has been marked as final.
Show 1 reply
-
1. Re: Jboss 7.2.0.Final BUG in CDI Container ?
suikast42 Dec 19, 2013 8:00 AM (in response to suikast42)For clarification:
UserDAOHibernateTest.java // If I use @Inject for userDAO then it can be happen that the user1 is detached ( this call is surrounded with a transaction) line 315: User user1 = userDAO.getByName(userName1);
GenericHibernateDAO.java line 52: public T getByName(String name) { return (T) eDAO.getByName(getPersistentClass(), name); }
So if I use @Inject in my test then it can be happen that the result user1 and the result of getByName are different references:
For example:
eDAO returns user@FFFFF but user1 is user@AAAAA