Incorrect signatures for EJB3 APIs
-----------------------------------
Key: EJBTHREE-950
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-950
Project: EJB 3.0
Issue Type: Bug
Affects Versions: AS 4.2.0 CR2
Reporter: Shelly McGowan
The following differences were detected in the JBoss EJB3 API signatures in Branch_4_2 and
trunk (5.0.0) according to the EJB3 API Javadoc located at:
http://java.sun.com/javaee/5/docs/api/
javax.ejb.ActivationConfigProperty:
No Target or Retention Policy defined
Defined as: class abstract public interface !annotation
javax.ejb.ActivationConfigProperty
Should be defined:
javax.ejb.ActivationConfigProperty: class abstract public interface !annotation
javax.ejb.ActivationConfigProperty
anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy
value=RUNTIME)
anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[])
----------------------
javax.ejb.EJB:
Target value includes PARAMETER
anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[METHOD, TYPE,
FIELD, PARAMETER])
should only be:
anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[TYPE, METHOD,
FIELD])
----------------------
javax.ejb.Init:
Defined as:
method abstract public !hasdefault java.lang.String[] value()
Should be:
method abstract public !hasdefault java.lang.String value()
--------------------------
javax.ejb.AccessMode
This is obsolete and should be removed.
------------------------------------------
javax.ejb.SessionContext:
Defined as:
public Object getBusinessObject(Class businessInterface) throws IllegalStateException;
Should be defined:
<T> T getBusinessObject(Class<T> businessInterface) throws
IllegalStateException;
------------------------------------------
javax.ejb.EJBAccessException:
Constructors for EJBAccessException should be:
public EJBAccessException()
public EJBAccessException(String message)
JBoss implementation has an additional constructor:
public javax.ejb.EJBAccessException(String message, Exception ex)
------------------------------------------
javax.ejb.EJBTransactionRolledbackException:
Constructors for EJBTransactionRolledbackException should be:
public EJBTransactionRolledbackException()
public EJBTransactionRolledbackException(String message)
public EJBTransactionRolledbackException(String message, Exception ex)
The JBoss implementation has an additional constructor:
public EJBTransactionRolledbackException(Exception ex)
----------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira