Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1
-
None
-
Patch
Description
See https://issues.apache.org/struts/browse/WW-1821for background. I proposed this change:
— XmlConfigurationProvider.java (revision 1877)
+++ XmlConfigurationProvider.java (working copy)
@@ -380,8 +380,8 @@
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 publi c", loc); }Side effect is that it would break anyone that is doing some sort of static loading on the actions (which is wrong but hey!). Opening ticket to get more feedback.