Bugs item #670650, was opened at 2003-01-19 13: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: Open
Resolution: None
Priority: 5
Submitted By: Lutz Walter (luwasoft)
Assigned to: Nobody/Anonymous (nobody)
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
    


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

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: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to