summaryrefslogtreecommitdiffstats
path: root/client-compiler
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-01-07 13:13:58 +0200
committerVaadin Code Review <review@vaadin.com>2014-01-08 09:20:43 +0000
commit171e68da0d072cb7a7f256d2d27c8b2674759358 (patch)
tree1fb02162654eedf76a06c484ba6f611fa954d8a5 /client-compiler
parent5e8e866664f0301ab442c0013bdec0f27e9f550d (diff)
downloadvaadin-framework-171e68da0d072cb7a7f256d2d27c8b2674759358.tar.gz
vaadin-framework-171e68da0d072cb7a7f256d2d27c8b2674759358.zip
Only use ClientRcp and ServerRpc types that are interfaces (#13056)
Change-Id: I73b062628052ec545d5f53314a0cc479806ee89d
Diffstat (limited to 'client-compiler')
-rw-r--r--client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java
index cbdd3e89aa..4d6a7ff6d7 100644
--- a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java
+++ b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ConnectorBundle.java
@@ -430,11 +430,11 @@ public class ConnectorBundle {
}
private static boolean isClientRpc(JClassType type) {
- return isType(type, ClientRpc.class);
+ return isInterfaceType(type, ClientRpc.class);
}
private static boolean isServerRpc(JClassType type) {
- return isType(type, ServerRpc.class);
+ return isInterfaceType(type, ServerRpc.class);
}
public static boolean isConnectedConnector(JClassType type) {
@@ -451,6 +451,10 @@ public class ConnectorBundle {
return isConnected(type) && isType(type, ComponentConnector.class);
}
+ private static boolean isInterfaceType(JClassType type, Class<?> class1) {
+ return type.isInterface() != null && isType(type, class1);
+ }
+
private static boolean isType(JClassType type, Class<?> class1) {
try {
return type.getOracle().getType(class1.getName())