Merge branch 'pr-513'

This commit is contained in:
Juan Martín Sotuyo Dodero
2017-07-24 14:55:45 -03:00
2 changed files with 4 additions and 2 deletions

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());
}
}

View File

@@ -97,4 +97,5 @@ Based on those metrics, rules like "GodClass" detection can be implemented more
* [#505](https://github.com/pmd/pmd/pull/505): \[java] Followup on metrics - [Clément Fournier](https://github.com/oowekyala)
* [#506](https://github.com/pmd/pmd/pull/506): \[java] Add reduction rules to type inference - [Bendegúz Nagy](https://github.com/WinterGrascph)
* [#512](https://github.com/pmd/pmd/pull/512): \[java] Add incorporation to type inference - [Bendegúz Nagy](https://github.com/WinterGrascph)
* [#513](https://github.com/pmd/pmd/pull/513): \[java] Fix for maximally specific method selection - [Bendegúz Nagy](https://github.com/WinterGrascph)