Bugs item #613214, was opened at 2002-09-23 14:11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=613214&group_id=22866

Category: JBossServer
Group: None
Status: Open
Resolution: None
Priority: 9
Submitted By: Christian Riege (lqd)
Assigned to: Nobody/Anonymous (nobody)
Summary: equals is wrong on Local Interfaces

Initial Comment:
hi,

there's something really rotten in the JBoss world
regarding local interfaces: when I do a check for
equality between two local interfaces of Bean A and
Bean B , this check returns TRUE when the beans have
the same PK (although they have totally different
classes and underlying DB tables).

This only happens on local interfaces, remote
interfaces work just fine.

Testcase and sources is attached. Put testcase.jar in
your deploy directory; then do 'java test.Test' to see
output in server console.

JDK 1.4.0_02
OS: Win2k & Linux
Affected JBoss Versions: 3.0 CVS, 3.2 CVS and 4.0 CVS

----------------------------------------------------------------------

>Comment By: Seth Sites (thesitesman)
Date: 2002-10-17 21:24

Message:
Logged In: YES 
user_id=579275

>From EJB 2.0 Spec Section 9.8.5 Page 120:

if a client obtains two entity object references from the 
same home, it can determine if they refer to the same 
entity by comparing their primary keys using the equals
method.

I think the important part here is "from the same 
home".  Your testcase involves comparing object 
references obtained from different homes.  This 
behavior is not addressed in the spec, and therefore is 
undefined.  Maybe we should check, but if you obtained 
it from the same home, like the spec clearly addresses, 
then the behavior will be correct.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=613214&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to