You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/10/15 23:31:21 UTC

svn commit: r1532544 - /tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java

Author: markt
Date: Tue Oct 15 21:31:21 2013
New Revision: 1532544

URL: http://svn.apache.org/r1532544
Log:
Fix Gump failures when the SCI scan finds too many classes.

Modified:
    tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java?rev=1532544&r1=1532543&r2=1532544&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java (original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java Tue Oct 15 21:31:21 2013
@@ -53,7 +53,14 @@ public class ExamplesConfig implements S
     @Override
     public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned) {
         // Deploy all WebSocket endpoints defined by annotations in the examples
-        // web application.
-        return scanned;
+        // web application. Filter out all others to avoid issues when running
+        // tests on Gump
+        Set<Class<?>> results = new HashSet<>();
+        for (Class<?> clazz : scanned) {
+            if (clazz.getPackage().getName().startsWith("websocket.")) {
+                results.add(clazz);
+            }
+        }
+        return results;
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org