Bug 564565 - the parameter XXX is not bound in [all branches of] pointcut
Summary: the parameter XXX is not bound in [all branches of] pointcut
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: 1.9.5   Edit
Hardware: PC Windows 10
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-23 04:11 EDT by Lv Hao CLA
Modified: 2020-06-23 04:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lv Hao CLA 2020-06-23 04:11:47 EDT
aspect define:
    @Around(value = "execution(* *(..)) && @annotation(com.example.Profile) && @annotation(profile)", argNames = "pjp, profile")
    public Object profile(ProceedingJoinPoint pjp, Profile profile) throws Throwable 
...

error:
[AppClassLoader@18b4aac2] error at com\example\ProfilingAspect.java::0 the parameter profile is not bound in [all branches of] pointcut

dependency:
spring-boot-starter-aop:2.3.1.RELEASE
spring-aspects:5.2.7.RELEASE
JDK8

@EnableLoadTimeWeaving

VM options:
-javaagent:path\spring-instrument-5.2.7.RELEASE.jar
-javaagent:path\aspectjweaver-1.9.5.jar