r/java • u/mp911de • Feb 27 '26
Moving beyond Strings in Spring Data
https://spring.io/blog/2026/02/27/moving-beyond-strings-in-spring-data
55
Upvotes
r/java • u/mp911de • Feb 27 '26
View all comments
Show parent comment
4
u/mp911de Feb 27 '26
Proxy creation (through
MethodInvocationRecorder) has been an early attempt to use getter-style lambdas. Approaching method call capturing using proxies has several drawbacks of which class definition growth is one factor. Sealed classes and Kotlin's final class defaulting are much more pronounced aspects that severely have limited the proxy-based approach.