Hi, the bug gets even weirder! In example below, suppose their is also a class D and A extends D.
Querying for class A still goes as described (wrong results), querying for class D objects, delivers the correct result. Roger Janssen iBanx -----Original Message----- From: Janssen, Roger [mailto:[EMAIL PROTECTED] Sent: maandag 31 maart 2003 16:14 To: OJB Users List (E-mail) Subject: Encountered (serious) bug in v0.9.7, don't know if it as been fix ed in later version hi, i'm at the point of migrating to the latest release, but came across what looks to be a serious bug. I searched the mailing-list archive, but couldn't find any reference the this issue. Suppose you have a class A and classes X, Y, Z where X, Y and Z subclass A. Suppose you have instances stored of classes X and Z, but none of Y. Suppose the mapping file contains this excerpt: <class-descriptor class="org.ibanx.A"> <extent-class class-ref="org.ibanx.X"/> <extent-class class-ref="org.ibanx.Y"/> <extent-class class-ref="org.ibanx.Z"/> </class-descriptor> Now when i count class A objects i get the correct count. Now when i search for class A objects i only get class X objects in my resultcollection. When i create a class Y instance, counting and retrieving works fine (all instances are returned). When i switch: <extent-class class-ref="org.ibanx.Z"/> <extent-class class-ref="org.ibanx.Y"/> in config file, without any class Y instances, again retrieving all objects querying for class A objects works fine. It looks like searching for every extend fails at the point when no instances are found for an extend, the resultset so far is returned, no error is thrown/logged! Probably, some uncaught nullpointer exception occurs forcing processing to end. As mentioned, i encountered this in version 0.9.7 and am not able to test this in more recent releases yet. I have not been able to find any mention of this bug in the mailing list yet. Roger Janssen iBanx ************************************************************************* The information contained in this communication is confidential and is intended solely for the use of the individual or entity to whom it is addressed.You should not copy, disclose or distribute this communication without the authority of iBanx bv. iBanx bv is neither liable for the proper and complete transmission of the information has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
