Synthetic properties: correct behaviour for method hierarchies
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class JavaClass1 {
|
||||
protected Object value = null;
|
||||
|
||||
public Object getSomething() { return null; }
|
||||
public void setSomething(Object value) { this.value = value; }
|
||||
}
|
||||
|
||||
class JavaClass2 extends JavaClass1 {
|
||||
public String getSomething() { return (String)value; }
|
||||
}
|
||||
Reference in New Issue
Block a user