Commits

Anonymous committed 5f9d90e

XWorkMapPropertyAccessor breaks when using sorted maps keyed on custom objects
Issue number: XW-316

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

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/util/XWorkMapPropertyAccessor.java

             return super.getProperty(context, target, name);
         }
 
-        Object result = super.getProperty(context, target, name);
+        Object result = null;
+
+        try{
+            result = super.getProperty(context, target, name);
+        } catch(ClassCastException ex){
+        }
 
         if (result == null) {
             //find the key class and convert the name to that class