Skip to content

CGLIB proxy cannot be created for class containing a final afterPropertiesSet() method #35365

@siom79

Description

@siom79

Implementing a subclass of WebServiceGatewaySupport and deploying it within Spring Boot, you will see the following log message:

025-08-21T13:32:25.007+02:00  WARN 97214 --- [XXX] [  restartedMain] o.s.aop.framework.CglibAopProxy          : Unable to proxy interface-implementing method [public final void org.springframework.ws.client.core.support.WebServiceGatewaySupport.afterPropertiesSet() throws java.lang.Exception] because it is marked as final, consider using interface-based JDK proxies instead.

Please remove the final keyword in order to prevent this WARN message from being logged. See also here why this is logged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: feedback-providedFeedback has been providedstatus: waiting-for-triageAn issue we've not yet triaged or decided on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions