Commits

Anonymous committed 11a9cc9

XW-667 Action validation should load class only when required

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1893e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 0d486fb

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java

             return true;
         }
         try {
-            Class clazz = objectFactory.getClassInstance(className);
             if (objectFactory.isNoArgConstructorRequired()) {
+                Class clazz = objectFactory.getClassInstance(className);
                 if (!Modifier.isPublic(clazz.getModifiers())) {
                     throw new ConfigurationException("Action class [" + className + "] is not public", loc);
                 }