execute @Before and @After aspect for Runnable.run method which invoked through lambda expression. [SPR-16680] #21221
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: invalid
An issue that we don't feel is valid
Manoj Kumar opened SPR-16680 and commented
How to create a pointcut for Runnable.run method So that
@Before
and@After
aspect can be invoked in java 8 lambda expression.@Before
aspect for pointcut in step 1 . ---> Print Before runnbale@Aefore
aspect for pointcut in step 1 . ---> Print After runnableWhen below line invoked
executor.runAsync(() -> {
System.out.println("Runnable invoked");
})
Output expected :
Before runnable
Runnable invoked
After runnable
No further details from SPR-16680
The text was updated successfully, but these errors were encountered: