Recently in Kotlin version 1.1.2 there was a change regarding opening (making not final) Koltin classes . Now private methods are not being opened. This is actual change:
Unfortunately Spring is very verbose regarding printing warning into logs about final methods. Which leads to a warning about private final methods like this:
"INFO org.springframework.aop.framework.CglibAopProxy - Final method [private final ...] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance."
Dariusz Bacinski opened SPR-15820 and commented
Recently in Kotlin version 1.1.2 there was a change regarding opening (making not final) Koltin classes . Now private methods are not being opened. This is actual change:
JetBrains/kotlin@5d4cefc
Unfortunately Spring is very verbose regarding printing warning into logs about final methods. Which leads to a warning about private final methods like this:
"INFO org.springframework.aop.framework.CglibAopProxy - Final method [private final ...] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance."
spring-framework/spring-aop/src/main/java/org/springframework/aop/framework/CglibAopProxy.java
Line 262 in 0d0b879
As discussed with Sebastien Deleuze
@koltinlang
Slack this should be checked only for public and protected methods.Affects: 5.0 RC2
Referenced from: commits 1e07468
The text was updated successfully, but these errors were encountered: