Skip to content

Consider target-class proxy mode by default [SPR-14515] #19084

Closed as not planned

Description

@spring-projects-issues

Juergen Hoeller opened SPR-14515 and commented

Following up on #19047, we should once again consider changing the default proxy mode to target-class (CGLIB)...


Affects: 5.0 M1

Issue Links:

Activity

  1. spring-projects-issues commented on Aug 25, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Willian Constâncio da Silva commented

    Maybe #8346 is a related issue.

  2. added
    in: core
    type: task
    on Jan 11, 2019
  3. jhoeller commented on Jul 14, 2023

    @jhoeller
    Contributor

    Aside from Spring Boot's default target-class choice for high-level proxy functionality there, I don't see us ever changing this in the core framework facilities. At that level, this is effectively an independent setting for every proxy factory and would break many assumptions in scenarios that are hard to fix.

    Also, in native images and similar scenarios, it actually turned out to be beneficial to aim for interface-based proxies wherever possible. Even for configuration classes, the "lite" mode (proxyBeanMethods=false) is rather recommendable for library components now, avoiding unnecessary class generation.

  4. added
    status: declined
    on Jul 14, 2023
  5. removed this from the General Backlog milestone on Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: corestatus: declinedtype: task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions