[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-684) Ejb3 deployer does not allow method overriding with Java 1.5 Covariant return types
Emmanuel Bernard (JIRA)
jira-events at lists.jboss.org
Tue Feb 13 21:59:30 EST 2007
[ http://jira.jboss.com/jira/browse/EJBTHREE-684?page=all ]
Emmanuel Bernard resolved EJBTHREE-684.
---------------------------------------
Fix Version/s: EJB 3.0 RC10 - FD
Resolution: Done
Assignee: Emmanuel Bernard
has been fixed in Javassist
> Ejb3 deployer does not allow method overriding with Java 1.5 Covariant return types
> -----------------------------------------------------------------------------------
>
> Key: EJBTHREE-684
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-684
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: EJB 3.0 RC8 - FD
> Environment: Jboss-4.0.4.GA with ejb3 installed using the installer 'jboss-4.0.4.GA-Patch1-installer.jar'
> Reporter: Swarn Dhaliwal
> Assigned To: Emmanuel Bernard
> Fix For: EJB 3.0 RC10 - FD
>
>
> We have ejb3 entities which use method overiding with java 1.5 covariant return types. The code works correctly in jboss-4.0.4rc1 with ejb3 installed using the installer.
> However when trying to deploy the same code in the aforementioned version a compilation exception is thrown indicating that there are duplicate methods in the class. The code looks like the following :
> public abstract class AbstractEntity {
> protected abstract Object getId();
> }
> public class ConcreteEntity extends AbstractEntity {
> public String getId() {
> return id;
> }
> }
--
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
More information about the jboss-jira
mailing list