diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index 05ab4016d4..5364b057d4 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -1,5 +1,6 @@ ???? - 4.2.5: +Enhanced logging in the ClassTypeResolver to provide more detailed messaging. October 12, 2008 - 4.2.4: diff --git a/pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java b/pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java index 385f6588b8..df358b72b1 100644 --- a/pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java +++ b/pmd/src/net/sourceforge/pmd/typeresolution/ClassTypeResolver.java @@ -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); }