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
This means that a subclass of ClientMessage will accept any message (as long as it's not null) by default if the developer forgets to implement validate.
Additionally, this method needs an address and port field to validate the client is the one who actually sent the message.
Expected behavior
Subclasses of MessageHandler should be forced to implement a validate method to ensure that the message is valid, and the message actually came from the expected client.
Your System:
LITIENGINE version: [e.g. 0.5.0-beta]
The text was updated successfully, but these errors were encountered:
Describe the bug
The following method is not abstract:
litiengine/src/de/gurkenlabs/litiengine/net/messages/MessageHandler.java
Lines 45 to 47 in 649ceea
This means that a subclass of ClientMessage will accept any message (as long as it's not null) by default if the developer forgets to implement
validate
.Additionally, this method needs an
address
andport
field to validate the client is the one who actually sent the message.Expected behavior
Subclasses of MessageHandler should be forced to implement a validate method to ensure that the message is valid, and the message actually came from the expected client.
Your System:
The text was updated successfully, but these errors were encountered: