-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 5.1.2, 5.2.2, 6.0.6 GA, 6.0.12 EE, 6.1.0 CE GA1, 6.1.10 EE GA1
-
Fix Version/s: 6.0.X EE, 6.1.1 CE GA2, 6.1.20 EE GA2, --Sprint 11/12, 6.2.0 CE M2
-
Component/s: Core Infrastructure > Service Builder
-
Labels:None
-
Branch Version/s:6.1.x, 6.0.x
-
Backported to Branch:Committed
-
Fix Priority:4
-
Git Pull Request:
When using <entity>Impl to override a method in <entity>ModelImpl, service builder adds another method with the same method signature to <entity>Clp so the compilation fails.
Here's an example ... let's say the entity has a member field called "name" of type String.
In <entity>ModelImpl, obviously, it will have this method:
public void setName(String name) {
...
}
if in your <entity>Impl, you want to override the method ...
public void setName(String name) {
super.setName();
//custom logic
}
you rerun service builder, and you'll get a build failure because of compilation error.
The <entity>Clp class has this:
public void setName(String name) {
_name = name;
}
public void setName(String name) {
throw new UnsupportedOperationException();
}
This second method shouldn't be generated.