Two inheritance bugs:

 

1. I have an EJB defined like this

 

public class BodyBean implements Contactable, EntityBean {

 

so the bean has another interface it implements besides EntityBean

 

The remote interface then also needs to implement Contactable, the generator looses Contactable the interface

 

2. I have two EJB's PersonBean and BodyBean, PersonBean extends BodyBean like this

 

public class PersonBean extends BodyBean {

 

XDoclet correctly generate the remote interface i.e.

 

public interface Person extends Body

 

XDoclet however goes on to generate inheritance for the home interface like this:

 

public interface PersonHome  extends com.jazzman.body.BodyHome

 

This is wrong since now you have problems with methods like findByPrimaryKey() because in BodyHome it returns Body but in PersonHome it tries to return Person

 

 

Andrew

Reply via email to