Revision: 1186
http://stripes.svn.sourceforge.net/stripes/?rev=1186&view=rev
Author: bengunter
Date: 2009-10-22 03:56:41 +0000 (Thu, 22 Oct 2009)
Log Message:
-----------
STS-664: Earlier commit (r1181) broke loadForClass(..) by repeatedly looking at
the property descriptors for the bean type instead of each superclass as it
climbs the hierarchy. Fixed here.
Modified Paths:
--------------
branches/1.5.x/stripes/src/net/sourceforge/stripes/validation/DefaultValidationMetadataProvider.java
Modified:
branches/1.5.x/stripes/src/net/sourceforge/stripes/validation/DefaultValidationMetadataProvider.java
===================================================================
---
branches/1.5.x/stripes/src/net/sourceforge/stripes/validation/DefaultValidationMetadataProvider.java
2009-10-22 03:50:55 UTC (rev 1185)
+++
branches/1.5.x/stripes/src/net/sourceforge/stripes/validation/DefaultValidationMetadataProvider.java
2009-10-22 03:56:41 UTC (rev 1186)
@@ -93,7 +93,7 @@
try {
for (Class<?> clazz = beanType; clazz != null; clazz =
clazz.getSuperclass()) {
List<PropertyDescriptor> pds = new
ArrayList<PropertyDescriptor>(
-
Arrays.asList(ReflectUtil.getPropertyDescriptors(beanType)));
+
Arrays.asList(ReflectUtil.getPropertyDescriptors(clazz)));
// Also look at public fields
Field[] publicFields = clazz.getFields();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development