diff --git a/org.eclipse.lsp4j.jsonrpc/src/main/java/org/eclipse/lsp4j/jsonrpc/messages/Message.java b/org.eclipse.lsp4j.jsonrpc/src/main/java/org/eclipse/lsp4j/jsonrpc/messages/Message.java index eb80af930..7e51dc51e 100644 --- a/org.eclipse.lsp4j.jsonrpc/src/main/java/org/eclipse/lsp4j/jsonrpc/messages/Message.java +++ b/org.eclipse.lsp4j.jsonrpc/src/main/java/org/eclipse/lsp4j/jsonrpc/messages/Message.java @@ -27,7 +27,11 @@ public abstract class Message { private transient MessageJsonHandler jsonHandler; - public MessageJsonHandler getJsonHandler() { + // Note: 'getJsonHandler' is not used as the name of the accessor method + // to avoid treating 'jsonHandler' as a general property of the message + // by reflective code such as ReflectiveMessageValidator. + + public MessageJsonHandler jsonHandler() { return jsonHandler; }