Skip to content

Incorrect pointcut expressions in reference documentation [SPR-16549] #21092

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

Closed
spring-projects-issues opened this issue Mar 4, 2018 · 2 comments
Assignees
Labels
type: documentation A documentation task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 4, 2018

Sviatoslav Hryb opened SPR-16549 and commented

The section Data Access, paragraph 1.5.8. Advising transnational operations contains incorrect pointcut expressions: "execution(!void x.y..Service.(..))" and "execution(\* x.y..Service.(..))" at 3 places as shown in images that is attached.
The correct poincut expressions should be: "execution(!void x.y..\*Service.\*(..))" and "execution(\* x.y..\*Service.\*(..))" accordingly.
h4.
I think that aforementioned section, paragraph 1.5.4. Configuring different transnational semantics for different beans also contains wrong pointcut expression : "execution(\* x.y.service.\*Service.\*(..))" because we point to some class that ends with Service in packet x.y.service, but actually we want to point to any packet that have a root - x.y.service. So the correct pointcut expression should be: "execution(\* x.y.service..\*Service.\*(..))"


Affects: 5.0.4

Reference URL: https://docs.spring.io/spring/docs/5.0.4.RELEASE/spring-framework-reference/data-access.html#spring-data-tier

Attachments:

Issue Links:

Referenced from: commits ff818d5

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This seems to be an escaping problem in the AsciiDoc format, with those stars interpreted as bold markers. I suppose we need to escape them properly.

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I've marked the affected source sections as "verbatim" (i.e. no "quotes") which has resolved that issue in other places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

2 participants