[java] Show more detailed message when can't resolve field type
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user