Skip to content

SpEL could not call methods of Object on a Proxy-Object #23369

@MrCoffee77

Description

@MrCoffee77

Affects: Spring Framework 5.0/5.1


I found the problem, that I couldn't call methods of Object in the SpEL, when the target-object is a Proxy. In my case it was the toString()-method.
I build a test, which shows the behavior and my workaround:
SpelProxyText.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions