[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-684) Ejb3 deployer does not allow method overriding with Java 1.5 Covariant return types
Swarn Dhaliwal (JIRA)
jira-events at jboss.com
Tue Aug 8 09:39:12 EDT 2006
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
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