Ah, the real bug shows it's ugly head. We'll get that one!

Thanks Scott.

-----Original Message-----
From: Scott M Stark
To: JBoss Dev
Sent: 6/21/01 8:36 PM
Subject: Re: [JBoss-dev] lib/jboss-j2ee.jar vs. client/jboss-j2ee.jar

This was an effort initiated by Marc due to some legal concerns. You'll
have to ping him for the details.

The serialVersionUID does not change simply because you recompile the
file and we should not just be fixing it because if they don't match it
indicates an inconsistent coding. For the problem class your showing
javap on
the 1.3 RI j2ee.jar shows:

lib 1209>javap -classpath j2ee.jar  javax.transaction.SystemException
Compiled from SystemException.java
public class javax.transaction.SystemException extends
java.lang.Exception {
    public int errorCode;
    public javax.transaction.SystemException();
    public javax.transaction.SystemException(java.lang.String);
    public javax.transaction.SystemException(int);
}

while the javax.transaction.SystemException in jboss-j2ee is:

public class SystemException extends Exception
{

    /** Creates new <code>SystemException</code> without detail message.
    */
    public SystemException()
    {
    }

    /** Constructs an <code>SystemException</code> with the specified
detail message.
    @param msg the detail message.
    */
    public SystemException(String msg)
    {
        super(msg);
    }

    /** Constructs an <code>SystemException</code> with the specified
detail message.
    @param errcode the error code for the exception
    */
    public SystemException(int errcode)
    {
    }
}

This shows that the class is missing the 'public int errorCode;' ivar,
hench the
serialVersionUID mismatch as it should be. Fix the source recompile on a
linux box and now the serialVersionUID matches that from the 1.3 RI
j2ee.jar:

bash-2.04$ serialver -classpath /tmp/JBoss_2_4/jboss-j2ee/src/main
javax.transaction.SystemException
javax.transaction.SystemException:    static final long serialVersionUID
= 839699079412719325L;

lib 1210>serialver -classpath j2ee.jar javax.transaction.SystemException
javax.transaction.SystemException:    static final long serialVersionUID
= 839699079412719325L;



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to