Merge branch 'pr-1776'

This commit is contained in:
Juan Martín Sotuyo Dodero
2019-04-16 17:01:03 -03:00
2 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,7 @@ Being based on a proper Antlr grammar, CPD can:
* [#1746](https://github.com/pmd/pmd/pull/1746): \[java] Update rule to prevent UnusedImport when using JavaDoc with array type - [itaigilo](https://github.com/itaigilo)
* [#1752](https://github.com/pmd/pmd/pull/1752): \[java] UseObjectForClearerAPI Only For Public - [Björn Kautler](https://github.com/Vampire)
* [#1761](https://github.com/pmd/pmd/pull/1761): \[dart] \[cpd] Added CPD support for Dart - [Maikel Steneker](https://github.com/maikelsteneker)
* [#1776](https://github.com/pmd/pmd/pull/1776): \[java] Show more detailed message when can't resolve field type - [Andrey Fomin](https://github.com/andrey-fomin)
{% endtocmaker %}

View File

@ -504,7 +504,9 @@ public class ClassTypeResolver extends JavaParserVisitorAdapter {
// swallow
} catch (final LinkageError e) {
if (LOG.isLoggable(Level.WARNING)) {
LOG.log(Level.WARNING, "Error during type resolution due to: " + e);
String message = "Error during type resolution of field '" + fieldImage + "' in "
+ typeToSearch.getType() + " due to: " + e;
LOG.log(Level.WARNING, message);
}
// TODO : report a missing class once we start doing that...
return null;