I am getting the error:
Error:(6356, 38) java: incompatible types: java.util.Map<java.lang.String,net.windward.format.wordml.WordMLParser.WordMLControl> cannot be converted to java.util.Map<java.lang.String,net.windward.format.OfficeMLParserBase.IOfficeXmlControl>
Where the class I am passing is:
private abstract static class WordMLControl implements IOfficeXmlControl {
...
}
And the method is:
protected void setProcessControl(Map<String, IOfficeXmlControl> procs) {
...
}
Why is this an error - I think this should be fine as the objects implement that interface.
Update: Ok, I understand this issue now (thank you Jorn). But the question remains, what's a good solution for this? In my case I will always get either Map<Cat>
or Map<Dog>
and that map is only read from.