Enhanced logging in the ClassTypeResolver to provide more detailed messaging.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6632 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Ryan Gustafson 2008-10-18 05:09:43 +00:00
parent 06bb1a6f27
commit 41d0550d99
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
???? - 4.2.5:
Enhanced logging in the ClassTypeResolver to provide more detailed messaging.
October 12, 2008 - 4.2.4:

View File

@ -146,11 +146,11 @@ public class ClassTypeResolver extends JavaParserVisitorAdapter {
populateClassName(node, className);
}
} catch (ClassNotFoundException e) {
LOG.log(Level.FINE, "Could not find class " + className);
LOG.log(Level.FINE, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage());
} catch (NoClassDefFoundError e) {
LOG.log(Level.WARNING, "Could not find class " + className);
LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage());
} catch (ClassFormatError e) {
LOG.log(Level.WARNING, "Could not find class " + className);
LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage());
} finally {
populateImports(node);
}