Commits

Anonymous committed 5815cfe

Generic Support in xwork-tiger.jar does not work
o Still searching
Issue number: WW-1192
Obtained from:
Submitted by:
Reviewed by:

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

Comments (0)

Files changed (1)

tiger/src/java/com/opensymphony/xwork/util/GenericsObjectTypeDeterminer.java

 
         Field field = OgnlRuntime.getField(parentClass, property);
 
-        if (field == null) {
-            return null;
-        }
-
-        KeyProperty annotation = field.getAnnotation(KeyProperty.class);
+        if (field != null) {
+            KeyProperty annotation = field.getAnnotation(KeyProperty.class);
 
-        if (annotation != null) {
-            return annotation.value();
+            if (annotation != null) {
+                return annotation.value();
+            }
         }
 
+
         return super.getKeyProperty(parentClass, property);
     }