summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2017-01-27 10:59:24 +0200
committerDenis <denis@vaadin.com>2017-01-27 10:59:24 +0200
commit870a4d9ab386de41b0c5e344d16ebfd9c13b2951 (patch)
treed5fe5d5d85ebbb9b7fbae1aad8ba808adb6caa48 /server
parent1b15047ffee1536143564b1829c12023313fecc3 (diff)
downloadvaadin-framework-870a4d9ab386de41b0c5e344d16ebfd9c13b2951.tar.gz
vaadin-framework-870a4d9ab386de41b0c5e344d16ebfd9c13b2951.zip
Improve Grid extendability (#8343)
* Improve Grid extendability (#8342). Find GridState field type using getField() instead of getDeclaredField() so that the field could be found in superclass as well. Change-Id: I33996f45e848575d11bb206c6a1d30d19e514968
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/ui/Grid.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java
index 9bd0c299ee..1efc091104 100644
--- a/server/src/main/java/com/vaadin/ui/Grid.java
+++ b/server/src/main/java/com/vaadin/ui/Grid.java
@@ -4723,7 +4723,7 @@ public class Grid extends AbstractFocusable implements SelectionNotifier,
Type type = null;
try {
type = (getState(false).getClass()
- .getDeclaredField(diffStateKey)
+ .getField(diffStateKey)
.getGenericType());
} catch (NoSuchFieldException e) {
e.printStackTrace();
@@ -4764,7 +4764,7 @@ public class Grid extends AbstractFocusable implements SelectionNotifier,
Type type = null;
try {
type = (getState(false).getClass()
- .getDeclaredField(diffStateKey)
+ .getField(diffStateKey)
.getGenericType());
} catch (NoSuchFieldException e) {
e.printStackTrace();