Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.1.RC1
-
Java 7
Description
Interface:
public interface MeeInterface { public String getName(); public void setName(String name); }
JavaBean implementing Interface:
@RooJavaBean public class MeeEntity implements MeeInterface { private String name; }
That was no problem in Roo 1.2.x - it generated MeeEntity_Roo_JavaBean.aj containing a getName and setName, not complaining in any way. In Roo 1.3.1.RC1 writes:
Method 'getName' already defined in ITD (ITD target 'xxx.MeeEntity_Roo_JavaBean')
adding:
public String getName() { return name; }
writes on roo shell:
Method '[email protected]76b87d4c[methodName=setName,parameterTypes=[]]' failed to provide a body, despite being identified for ITD inclusion
which can be fixed by adding:
public void setName() { }