-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
JavaEE 7 Spec APIs 1.0.0.Final
-
None
In javax.websocket.WebSocketContainer, the javadoc for two connectToServer method signatures contains an incorrect statement:
connectToServer(Object annotatedEndpointInstance, URI path)
connectToServer(Class<?> annotatedEndpointClass, URI path)
The supplied object must be a class decorated with the class level {@link javax.websocket.server.ServerEndpoint} annotation.
which should point to javax.websocket.ClientEndpoint instead of the ServerEndpoint.
Also, in case of connectToServer(Object annotatedEndpointInstance, URI path), that sentence should read ...supplied object must be an instance of a class...