DRY-211: Failure to disambiguate a reference to a base class field when used in a simple expression
First, I apologize for not making this as attachment, but due to my setup it’s a bit complicated…
Steps to reproduce:
1. Create Base.java:
public class Base
{
protected Base base;
public Base getAnotherBase() {
return null;
}
}
Create Derived.java:
public class Derived extends Base
{
public Base getBase() {
return base.getAnotherBase();
}
}Run:
dryad-front -i Derived.java Base.javaYou get:
Submitted on 5 January 2006 at 22:30
[ dryad-front | error ] Ambiguous construct cannot be reclassified:
AmbName(Id(“base”))
Issue Log
On 20 February 2006 at 00:24 Jira commented:
DRY-211, martin:
Finally, this horrible issue has been closed by a rewrite of the reclassifier.
Log in to post comments