From a0ddb2c5d74845bf254f25f9389dc011a83be92d Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 3 Oct 2013 16:06:47 -0700 Subject: [PATCH] 418632 - WebSocket / Jsr annotated @OnMessage with InputStream fails to be called + Fixed load order issue with binary vs text + Fixed decoder assignment for InputStream + Added unit tests to prevent regression of this feature --- .../annotations/AnnotatedEndpointScanner.java | 2 +- .../jsr356/annotations/JsrParamIdBinary.java | 3 +- .../jsr356/metadata/CoderMetadataSet.java | 1 - ...tedEndpointScanner_GoodSignaturesTest.java | 7 +++ .../samples/BasicInputStreamSocket.java | 47 +++++++++++++++++ .../BasicInputStreamWithThrowableSocket.java | 39 ++++++++++++++ .../jsr356/server/EchoClientSocket.java | 9 ++-- .../websocket/jsr356/server/EchoTest.java | 9 ++++ .../samples/binary/ByteBufferSocket.java | 51 ++++++++++++++++++ .../samples/streaming/InputStreamSocket.java | 52 +++++++++++++++++++ 10 files changed, 214 insertions(+), 6 deletions(-) create mode 100644 jetty-websocket/javax-websocket-client-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/endpoints/samples/BasicInputStreamSocket.java create mode 100644 jetty-websocket/javax-websocket-client-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/endpoints/samples/BasicInputStreamWithThrowableSocket.java create mode 100644 jetty-websocket/javax-websocket-server-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/server/samples/binary/ByteBufferSocket.java create mode 100644 jetty-websocket/javax-websocket-server-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/server/samples/streaming/InputStreamSocket.java diff --git a/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/annotations/AnnotatedEndpointScanner.java b/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/annotations/AnnotatedEndpointScanner.java index 70075e47b7b..5d96eec6143 100644 --- a/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/annotations/AnnotatedEndpointScanner.java +++ b/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/annotations/AnnotatedEndpointScanner.java @@ -64,8 +64,8 @@ public class AnnotatedEndpointScanner