Java, typeres: fix for maximally specific method selection

This commit is contained in:
Bendegúz Nagy
2017-07-24 19:44:59 +02:00
parent 7918e782f3
commit 9c8cbecc18

View File

@ -285,8 +285,9 @@ public final class MethodTypeResolution {
} else if (second.isAbstract()) {
return first; // first isn't abstract, second one is
} else {
throw new IllegalStateException("None of the maximally specific methods are abstract.\n"
+ first.toString() + "\n" + second.toString());
return null; // TODO: once shadowing and overriding methods is done, add exception back
// throw new IllegalStateException("None of the maximally specific methods are abstract.\n"
// + first.toString() + "\n" + second.toString());
}
}