Skip to content

Annotated*Client annotated with ClientEndpoint should not be included in the deployment #578

@jamezp

Description

@jamezp

Challenged tests

  • com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.client.WSCClientIT

TCK Version
Jakarta WebSocket 2.2.0

Description
The com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.client.WSCClientIT includes 3 client classes that are included in the deployment because they're in the com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.client package. These 3 types should not be included as they're not needed in the deployment and only used on the client side.

  • com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.client.AnnotatedBinaryClient
  • com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.client.AnnotatedTextClient
  • com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.client.AnnotatedThrowingClient

The com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.client.AnnotatedThrowingClient in the deployment which does not have a no-arg constructor. This causes the deployment to fail and thus the tests do not run. Per the specification:

The class must have a public no-args constructor,

The other 2 have requirements on the following two types which are not included in the deploy:

  • com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.common.AlternativeInputStreamDecoder.class
  • com.sun.ts.tests.websocket.ee.jakarta.websocket.session11.common.AlternativeReaderDecoder.class

Note I've updated the description here as I thought we needed to add the above two types to the deployment, see #579. However, it makes more sense to not include the clients in the deployment.

Additional context
The workaround is to remove the types from the deployment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions