Skip to content

Missing proxy for calling local annotated methods #34296

@KazzmanK

Description

@KazzmanK

Hi! I'm looking for an explanation of best practices, how it was originally considered by developers.
If I have a chain of calls Controller->ClassA.nonAnnotatedMethod->ClassA.annotatedMethod->Repository there will be no proxy specified by annotation, i.e. @transactional or @retryable.
To make annotations effective I need to create separate class Controller->ClassA.nonAnnotatedMethod->ClassB.annotatedMethod->Repository and make sure, that FIRST method called in class must be annotated.
This leads me to have some tools to analyze and warn. Or have all non-annotated methods private, or something. And using annotations becomes dangerous, requires extra specific tests just to make sure annotations are processed right.
Is this an expected behavior or I'm missing something significant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions