Bugs item #670650, was opened at 2003-01-19 05:38
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=670650&group_id=22866

Category: JBossServer
Group: v3.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Lutz Walter (luwasoft)
Assigned to: Scott M Stark (starksm)
Summary: EJBVerifier20 PrimaryKey test bug

Initial Comment:
Version JBoss 3.0.5(stable) and JBoss 3.2.0RC1

OS independent, JDK independent

The EJBVerifier20 does a missleading verification on
PrimaryKey's.
To verifiy if the PrimaryKeyClass has a "suitable
implementation of the equals(Object other) method"
(12.2.12.c) it does:

>from EJBVerifier20.java
....
  cls = classloader.loadClass(entity.getPrimaryKeyClass());
....
    one = cls.newInstance();
    two = cls.newInstance();
....
    if( !one.equals(two) ) {
       if( cmp ) {
          fireSpecViolationEvent( entity,
                        new Section("10.6.13.c"));
       } else {
          fireSpecViolationEvent( entity,
                        new Section("12.2.12.c"));
       }
....  

Please correct me if i am wrong but as far as i know, a
uninitialized PrimaryKey should never equal to another,
even if the other is in the same uninitialized state.
So, this is not the right test to verify this.
In JBoss 3.0.5 this results only in some "INFO"
messages during deployment, in JBoss 3.2.0RC1 the
EJBDeployer does not deploy EJBs with those PKs that
fail this test
    


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

>Comment By: Scott M Stark (starksm)
Date: 2003-01-24 10:54

Message:
Logged In: YES 
user_id=175228

Fixed for 3.0.6 and above.

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

Comment By: Scott M Stark (starksm)
Date: 2003-01-24 10:18

Message:
Logged In: YES 
user_id=175228

This should be a warning, not a failure. Two unitialized 
primary keys should be in the same state and should be 
equal generally as they represent the same object. This test 
is a heuristic to check if the key equals is screwed up, but it 
cannot be viewed as worthy of a failure if the two keys are not 
equal.

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

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


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to