From 40c826f8209d1a02bb1d3245f314150ca66e2cc6 Mon Sep 17 00:00:00 2001 From: Oliver Burn Date: Thu, 19 Sep 2002 00:34:35 +0000 Subject: [PATCH] changed so that the class loader can be specified. --- .../com/puppycrawl/tools/checkstyle/CheckConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;