-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Search before asking
- I searched in the issues and found nothing similar.
Describe the bug
After upgrading to Spring Boot 4.0.0, we noticed this warning:
o.s.aop.framework.CglibAopProxy : Public final method [public final java.lang.Object tools.jackson.databind.ObjectMapper.readValue(tools.jackson.core.JsonParser,tools.jackson.core.type.ResolvedType) throws tools.jackson.core.JacksonException] cannot get proxied via CGLIB, consider removing the final marker or using interface-based JDK proxies.
It is a new change since Spring Framework 7 that prints warning when trying to proxy a class with public final methods.
I see only one method in JsonMapper/ObjectMapper that is public final:
jackson-databind/src/main/java/tools/jackson/databind/ObjectMapper.java
Lines 1024 to 1029 in 1d6e5d5
| @SuppressWarnings("unchecked") | |
| public final <T> T readValue(JsonParser p, ResolvedType valueType) throws JacksonException | |
| { | |
| _assertNotNull("p", p); | |
| return (T) _readValue(_deserializationContext(p), p, (JavaType) valueType); | |
| } |
So, this is an enhancement request to remove final from that public method.
Version Information
3.0.2
Reproduction
No response
Expected behavior
No response