diff --git a/webapp/src/freemarker/ext/dump/BaseDumpDirective.java b/webapp/src/freemarker/ext/dump/BaseDumpDirective.java index 8ec8c4522..53c10e6e4 100644 --- a/webapp/src/freemarker/ext/dump/BaseDumpDirective.java +++ b/webapp/src/freemarker/ext/dump/BaseDumpDirective.java @@ -382,21 +382,18 @@ public abstract class BaseDumpDirective implements TemplateDirectiveModel { continue; // Eliminate methods declared on Object + // and other unusual places that can cause problems. Class c = method.getDeclaringClass(); if (c.equals(java.lang.Object.class) || c.equals(java.lang.reflect.Constructor.class) || c.equals(java.lang.reflect.Field.class ) ) continue; - - if( c.getPackage().getName().startsWith("sun.") || c.getPackage().getName().startsWith("java.lang") || c.getPackage().getName().startsWith("java.security") ) - continue; - - log.error("decalring class of method " + method.getName() + " is " + c.getName()); + continue; // Eliminate deprecated methods if (method.isAnnotationPresent(Deprecated.class)) {