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
When using RedisCommandFactory with an interface containing static methods, the factory tries to bind them to commands and ends up throwing a CommandMethodSyntaxException, despite the method already having an implementation (since it's static):
mp911de
changed the title
CommandMethodSyntaxException being thrown when using method interface containing static methods
Static command interface methods are erroneously verified against command names
Sep 3, 2021
Bug Report
Current Behavior
When using
RedisCommandFactory
with an interface containing static methods, the factory tries to bind them to commands and ends up throwing aCommandMethodSyntaxException
, despite the method already having an implementation (since it's static):Input Code
Interface:
Factory:
Expected behavior/code
The method should be ignored by the command binding mechanism, just like default methods, and by consequence this exception shouldn't be thrown.
Environment
Possible Solution
Add method static check to the conditions in
DefaultRedisCommandMetadata
:Current:
After:
Additional context
Please don't judge me for using static methods on the interface xD
The text was updated successfully, but these errors were encountered: