summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-06 11:17:44 +0200
committerArtur Signell <artur@vaadin.com>2012-11-06 11:18:32 +0200
commit817df46c137cccb9112b12fb6a75a4cdc840d94c (patch)
treead71d5eb78606ec67a5542136f87005cd5eb06d2 /server
parent755fe2074bc59ad7079979e11d9a9d809e632857 (diff)
downloadvaadin-framework-817df46c137cccb9112b12fb6a75a4cdc840d94c.tar.gz
vaadin-framework-817df46c137cccb9112b12fb6a75a4cdc840d94c.zip
Do not include classes which cannot be instansiated
Change-Id: I467993c91754f094e5d55d5c849c718291487754
Diffstat (limited to 'server')
-rw-r--r--server/tests/src/com/vaadin/tests/VaadinClasses.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/src/com/vaadin/tests/VaadinClasses.java b/server/tests/src/com/vaadin/tests/VaadinClasses.java
index c0e026a5ca..b0d06ea897 100644
--- a/server/tests/src/com/vaadin/tests/VaadinClasses.java
+++ b/server/tests/src/com/vaadin/tests/VaadinClasses.java
@@ -244,7 +244,9 @@ public class VaadinClasses {
Class<?> c = Class.forName(fullyQualifiedClassName);
if (baseClass.isAssignableFrom(c)
- && !Modifier.isAbstract(c.getModifiers())) {
+ && !Modifier.isAbstract(c.getModifiers())
+ && !c.isAnonymousClass() && !c.isMemberClass()
+ && !c.isLocalClass()) {
result.add((Class<? extends T>) c);
}
} catch (Exception e) {