diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-10-01 09:42:41 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-10-01 09:42:41 +0000 |
commit | 697cd01d1c7c708b94900ba457c155fe61787869 (patch) | |
tree | 8e33a407e62e1b23a0183b56491b13f7272bd985 /server | |
parent | 56bccde137a8cb5587f1f3cd55bce15fb26fc2c3 (diff) | |
parent | d371ac4a4e3f7f29f5a17f16c4134062c280115e (diff) | |
download | vaadin-framework-697cd01d1c7c708b94900ba457c155fe61787869.tar.gz vaadin-framework-697cd01d1c7c708b94900ba457c155fe61787869.zip |
Merge "Avoid adding RpcInvocationHandler toString as invocations (#9802)"
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/AbstractClientConnector.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/com/vaadin/server/AbstractClientConnector.java b/server/src/com/vaadin/server/AbstractClientConnector.java index eb59cbe5fc..1f0d3049b5 100644 --- a/server/src/com/vaadin/server/AbstractClientConnector.java +++ b/server/src/com/vaadin/server/AbstractClientConnector.java @@ -290,6 +290,11 @@ public abstract class AbstractClientConnector implements ClientConnector { @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { + if (method.getDeclaringClass() == Object.class) { + // Don't add Object methods such as toString and hashCode as + // invocations + return method.invoke(this, args); + } addMethodInvocationToQueue(rpcInterfaceName, method, args); return null; } |