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

Enable do ctrl click at an advice's pointcut method to open a Poincut class in the respective @Pointcut method #1328

Open
manueljordan opened this issue Aug 20, 2024 · 0 comments
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode type: enhancement
Milestone

Comments

@manueljordan
Copy link

Hello

For STS 4.23.1

Having a pointcut class as follows:

package com.manuel.jordan.aop.pointcut;

...

public class CienciaPointcut {

	@Pointcut("execution(* com.manuel.jordan.service.CienciaService.count(..))")
	public void cienciaServiceCount() {

	}

	@Pointcut("execution(* com.manuel.jordan.service.CienciaService.find*(..))")
	public void cienciaServiceFinds() {

	}

}

Observe the class and methods are public

If in an Aspect class exists in other package as follows:

package com.manuel.jordan.aop.aspect;

...

@Aspect
@Component
@Profile("aop-before")
class LoggingCienciaAspectBefore {

       @Before("com.manuel.jordan.aop.pointcut.CienciaPointcut.cienciaServiceFinds()")
	void beforeAdviceForFinds(JoinPoint jp) {
           ...
	}

}

Through the IDE I am able to do ctrl + click in the class name at:

  • Before("com.manuel.jordan.aop.pointcut.CienciaPointcut.cienciaServiceFinds()")

It with the purpose to open the CienciaPointcut class.
Until here It works fine.

But is not possible do ctrl + click in the method name at:

  • Before("com.manuel.jordan.aop.pointcut.CienciaPointcut.cienciaServiceFinds()")

It with the purpose to open the CienciaPointcut class but in the cienciaServiceFinds() method

@martinlippert martinlippert added for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode and removed status: waiting-for-triage labels Aug 21, 2024
@martinlippert martinlippert added this to the Backlog milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants