-
Notifications
You must be signed in to change notification settings - Fork 38.5k
@Aspect aspect not correctly applied to Java 8 lambda-defined @Beans [SPR-11807] #16427
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
Comments
Nick Williams commented Is this still planned for being fixed in Spring 4.2? |
Stéphane Nicoll commented Nick, the fix version is set so that's the current plan yes (same answer for your other comment). |
Juergen Hoeller commented This turns out to be a problem in AspectJ's
Instead of using the given Within AspectJ, this means it'll end up with a
Andy Clement, do you see an easy way out here? Juergen |
Juergen Hoeller commented I'll commit the test that I was using for this, marking it as ignored for the time being: Juergen |
Andy Clement commented I'll look out for that test appearing and dive into a bit. I have some thoughts on how we can get this to work (obviously with changes to AspectJ). |
Andy Clement commented I have a fix for this coming in AspectJ 1.8.6 (due soon) - it passes the test case included in ConfigurationClassAspectIntegrationTests. Work done under this AspectJ issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=468351 |
Juergen Hoeller commented Resolved through an upgrade to AspectJ 1.8.6 as the suggested version in our POMs. |
Uh oh!
There was an error while loading. Please reload this page.
Josh Long opened SPR-11807 and commented
In the example below, I define an aspect which I expect to be applied to all beans of type
CommandLineRunner
, it isn't if the bean is defined as a lambda on java version "1.8.0_05" on OSX.(java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode))
Affects: 4.0.4
Issue Links:
1 votes, 9 watchers
The text was updated successfully, but these errors were encountered: