Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
jcs-2.0
-
None
-
None
Description
I saw following log
2014-12-30 11:42:44,937 [main] WARN org.apache.commons.jcs.utils.config.PropertySetter - Failed to set property eventQueueType to value "POOLED". Conversion to type [class org.apache.commons.jcs.engine.behavior.ICacheEventQueue$QueueType] failed.
Looks like enum doesn't set properly
Here is a patch
Index: PropertySetter.java
===================================================================
— PropertySetter.java (revision 1648479)
+++ PropertySetter.java (working copy)
@@ -263,6 +263,19 @@
return Boolean.FALSE;
}
}
+ else if( type.isEnum() )
+ {
+ try
+
+ catch(Exception e)
+
+ }
else if ( File.class.isAssignableFrom( type ) )
{
return new File( v );
Thanks
Youngho