Bug 471347

Summary: Java 8 lambda support (invokedynamic joinpoint)
Product: [Tools] AspectJ Reporter: Alexander Kriegisch <Alexander>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: aclement, dobrin.ivanov.work, nandor.fekete+eclipse
Version: 1.8.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 8   
Whiteboard:

Description Alexander Kriegisch CLA 2015-06-29 12:05:08 EDT
There was a recent discussion on StackOverflow [1] and on the AspectJ users mailing list [2] about better lambda support. Andy encouraged me to issue a ticket, which I am doing just now. I am unsure whether issue #364886 [3] might also be related to this one, but I suppose so.


[1] http://stackoverflow.com/questions/30776675/aspectj-pointcut-on-lambda-expression

[2] http://aspectj.2085585.n4.nabble.com/Pointcut-matching-issue-with-lambdas-td4651857.html

[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=364886
Comment 1 Alexander Kriegisch CLA 2018-02-02 05:53:54 EST
Hello.

Has this issue been noticed, maybe worked on or even resolved? I just saw it again because someone posted a comment on the old StackOverflow issue.
Comment 2 Andrew Clement CLA 2018-02-05 19:17:53 EST
Issue has been noticed but nothing done on it I'm afraid.
Comment 3 Alexander Kriegisch CLA 2018-04-03 03:20:57 EDT
There has been another SO issue with a similar problem. Here is my answer:

https://stackoverflow.com/a/49624393/1082681
Comment 4 Alexander Kriegisch CLA 2020-10-04 21:27:47 EDT
Here is yet another case where lambda support would be helpful:
https://stackoverflow.com/a/64201365/1082681

This is about callback hooks registered for events in reactive frameworks like RxJava where lambdas are heavily used, basically disqualifying them for AspectJ usage.