Uploaded image for project: 'JBoss Enterprise Spec APIs'
  1. JBoss Enterprise Spec APIs
  2. JBEE-155

Javadoc for WebSocketContainer.connectToServer mentions ServerEndpoint instead of ClientEndpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • JavaEE 7 Spec APIs 1.0.0.Final
    • jboss-websocket-api
    • None

    Description

      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...

      Attachments

        Activity

          People

            flaviarnn Flavia Rainone
            rsmeral Ron Šmeral (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: