Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partially correct pointcut example. #34142

Closed
kumaraman528 opened this issue Dec 23, 2024 · 1 comment
Closed

Partially correct pointcut example. #34142

kumaraman528 opened this issue Dec 23, 2024 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@kumaraman528
Copy link

kumaraman528 commented Dec 23, 2024

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

@snicoll
Copy link
Member

snicoll commented Dec 24, 2024

Closing as duplicate of #34143

@kumaraman528 going forward, please do not open an issue if you intend to send a PR.

@snicoll snicoll closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2024
@snicoll snicoll added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants