Ambiguous reference to 'identifier' in interfaces 'identifier' and 'identifier'
The compiler detected an ambiguous reference to an identifier. The identifier may have been declared in two or more interfaces, and the compiler could not determine which reference to use. Ensure that you do not have two interfaces with the same field defined.
The following example illustrates this error:
interface Interface1 {
final int i = 0;
}
interface Interface2 {
final int i = 1;
}
public class Simple implements Interface1, Interface2 {
int method1() {
return i; //error: cannot determine which instance of 'i' to use
}
}