You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using interface properties with delegation, I am required to manually re-implement the getters and/or setters for those properties, rather than having them automatically delegated to the delegate object. Consider the following example:
publicinterfaceTestIntf {
@varObjectobject;
}
publicclassTestimplementsTestIntf {
@override@varObjectobject;
}
publicclassDelegationTestimplementsTestIntf {
@linkTestdelegate;
publicDelegationTest(Testdelegate){
this.delegate = delegate;
}
// Error! I'm forced to implement the following methods.// @Override public Object getObject() { ... }// @Override public void setObject(Object value) { ... }
}
I would expect the getter and setter methods to be automatically delegated to the delegate object, but instead, I am forced to implement them manually.
When replacing the interface properties with getter and setter methods, I'm not required anymore to implement them when using delegation.
- disambiguate a reference to a property from the implementing class where the property field comes from both the interface and the super class. The property should always resolve through the super class not the interface
Describe the bug
When using interface properties with delegation, I am required to manually re-implement the getters and/or setters for those properties, rather than having them automatically delegated to the delegate object. Consider the following example:
I would expect the getter and setter methods to be automatically delegated to the delegate object, but instead, I am forced to implement them manually.
When replacing the interface properties with getter and setter methods, I'm not required anymore to implement them when using delegation.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: