You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, previously that code was checking for the native session to be generally initialized, and now it checks for the uri field specifically. There is indeed a mismatch here: Since this implements the WebSocketSession.getUri() method there, we'll have to mark that method @Nullable at the interface level, matching the runtime invocation semantics.
As for the current mismatch between field and accessor, this is not so unusual: The uri field is initially not set (therefore nullable) and only populated on initializeNativeSession. From then onwards, the accessors expect non-null state, and the assertion just says "you called the accessor before initializing the native session". Now, for getUri() specifically, it may remain null even after the native session, which we need to fix as discussed above.
Uh oh!
There was an error while loading. Please reload this page.
Artem Bilan opened SPR-15721 and commented
The recent change to the
StandardWebSocketSession
via #20276, particularly the code:Produces the problem on the client side when we have, according
org.apache.tomcat.websocket.WsSession
JavaDocs:Therefore that
Assert
has to be removed.At the same time I'm not pretty sure how we may have it like:
and say that it can't be
null
in thegetUri()
.Thanks
Affects: 5.0 RC3
Issue Links:
Referenced from: commits 9afce23
The text was updated successfully, but these errors were encountered: