From: <leg...@at...> - 2003-11-28 14:47:15
|
The following comment has been added to this issue: Author: Panagiotis Louridas Created: Fri, 28 Nov 2003 8:46 AM Body: I tried solution (2) and it works fine. Thanks a lot Max, and sorry for taking up your time. You made at least a few people aroung here pack happy for the weekend. I really appreciate your excellent feedback. In retrospect it seems amazing that, although reflection would be mangled, it has been several months that junit has been used in this way without hibernate carping... Just a suggestion: I had browsed the FAQs and I had seen the item; however, I had been getting no ClassCastException; even now, I get a LogConfigurationException. To be sure, I might have investigated anyway. Still, perhaps others would be saved from trouble if the heading in that FAQ were changed to something like: "using hibernate and junit"? It seems to me that the advice applies *anyway*, ClassCastException or not. Best Regards, Thanks again, Panos. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-506 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-506 Summary: Non-deterministic? failure of generated proxies Type: Bug Status: Closed Priority: Major Resolution: REJECTED Project: Hibernate2 Fix Fors: 2.1 rc1 Versions: 2.0.3 Assignee: Reporter: Panagiotis Louridas Created: Fri, 28 Nov 2003 3:59 AM Updated: Fri, 28 Nov 2003 8:46 AM Environment: redhat linux 9, j2se 1.4.2 (build 1.4.2-b28), postgres, hibernate 2.0.3 Description: Suppose we have a class hierarchy A <- B, A <- C. Both class B and C have a method getX(). Suppose, moreover, that we have a class R that contains a reference to A. If we do a query on class R and then a query on class B or C, we *sometimes* get a ClassCastException for the generated proxy when we try to call getX(). In my environment, the same test case succeeds or fails upon repeated execution. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |