diff options
author | Artur Signell <artur@vaadin.com> | 2014-06-18 13:35:08 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2014-06-18 13:43:21 +0300 |
commit | 54329d37c882a3b1b4e916258a40fafde5fc34c8 (patch) | |
tree | 9394906e9aed51ffc5028231f64683a7c4e075dd /server | |
parent | 7de2808b04dcf10628b7952251d834d38925dfa4 (diff) | |
download | vaadin-framework-54329d37c882a3b1b4e916258a40fafde5fc34c8.tar.gz vaadin-framework-54329d37c882a3b1b4e916258a40fafde5fc34c8.zip |
Do not consider compiler introduced methods when determining state class (#14003)
Change-Id: Ia2c3b8331f1ae34effceb0bb624cfaa7ba8578ed
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/AbstractClientConnector.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/com/vaadin/server/AbstractClientConnector.java b/server/src/com/vaadin/server/AbstractClientConnector.java index 92c235167c..d03f032c88 100644 --- a/server/src/com/vaadin/server/AbstractClientConnector.java +++ b/server/src/com/vaadin/server/AbstractClientConnector.java @@ -292,11 +292,13 @@ public abstract class AbstractClientConnector implements ClientConnector, Method m = class1.getDeclaredMethod("getState", (Class[]) null); Class<?> type = m.getReturnType(); - return type.asSubclass(SharedState.class); + if (!m.isSynthetic()) { + return type.asSubclass(SharedState.class); + } } catch (NoSuchMethodException nsme) { - // Try in superclass instead - class1 = class1.getSuperclass(); } + // Try in superclass instead + class1 = class1.getSuperclass(); } throw new NoSuchMethodException(getClass().getCanonicalName() + ".getState()"); |