]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed #4514 - BeanItemContainer: getSortablePropertyIds doesn't include primitive...
authorArtur Signell <artur.signell@itmill.com>
Fri, 16 Apr 2010 06:17:00 +0000 (06:17 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 16 Apr 2010 06:17:00 +0000 (06:17 +0000)
svn changeset:12585/svn branch:6.3

src/com/vaadin/data/util/BeanItemContainer.java

index 3e3c4a55388aeb721224f73d9a748ffd98e49400..e99f219dbbdcd80a6dbc1a4d3179bb78f9db0e18 100644 (file)
@@ -444,7 +444,8 @@ public class BeanItemContainer<BT> implements Indexed, Sortable, Filterable,
         LinkedList<Object> sortables = new LinkedList<Object>();
         for (Object propertyId : getContainerPropertyIds()) {
             Class<?> propertyType = getType(propertyId);
-            if (Comparable.class.isAssignableFrom(propertyType)) {
+            if (Comparable.class.isAssignableFrom(propertyType)
+                    || propertyType.isPrimitive()) {
                 sortables.add(propertyId);
             }
         }