diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckConfiguration.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckConfiguration.java index c12915c0a..8f316451c 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckConfiguration.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckConfiguration.java @@ -96,11 +96,11 @@ class CheckConfiguration * @throws InstantiationException if an error occurs * @throws IllegalAccessException if an error occurs */ - Check createInstance() + Check createInstance(ClassLoader aLoader) throws ClassNotFoundException, InstantiationException, IllegalAccessException { - final Class clazz = Class.forName(mClassname); + final Class clazz = Class.forName(mClassname, true, aLoader); final Check check = (Check) clazz.newInstance(); // TODO: need to set the properties return check;