[java] Show more detailed message when can't resolve field type

This commit is contained in:
Фомин Андрей Николаевич
2019-04-15 16:11:26 +07:00
parent ee2d03a733
commit f121b102a4

View File

@ -504,9 +504,10 @@ 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;
}