Skip to content

Partially correct pointcut example. #34142

@kumaraman528

Description

@kumaraman528

Page: 333 (334)

"Any join point (method execution only in Spring AOP) which takes a single parameter, and
where the runtime type of the argument passed has the @classified annotation:"

The solution in the documentation is:

@Args(com.xyz.security.Classified)

However, the actual solution should be:

@execution(* *(..)) && args(arg) && @Args(com.xyz.security.Classified).

The example in the documentation does not account for the requirement of a single parameter.

fix- pr

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions