-
Notifications
You must be signed in to change notification settings - Fork 85
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
'NoSuchMethodError' during runtime when using lambda as ITD field value with binary weaving #200
Comments
At first I could not reproduce the problem, because accidentally I compiled the aspect from #199 with the same class name instead of overwriting it by the new version. Now the error reproduces. Anyway, I have a follow-up question about your somewhat contrived build command with aspectjrt.jar on the inpath instead of the classpath, like it should be. What are you trying to achieve? I can only speculate that you wish to build the core application and an aspect library separately, weaving them together using binary weaving. Or did you put the AspectJ runtime on the inpath in order to create something like a shaded fat JAR? Please explain. |
One initial finding ist that when compiling aspect and application together from source code, the However, the workaround from #199 (comment), i.e. replacing the lambda by a method reference, also helps. |
gh-199-200.zip contains reproducers for both #199 and #200. Unpack into an empty directory and run with Git Bash:
|
Thank you for your quick reply.(#199)
It seems to be a similar problem, please check below error.
Below case(test_jar + Testjava.aj = test.jar), It occur error that not generated lambda$0 in Testjava.class.
execute & error log
build command
source code
Testjava.java
TestjavaAO.aj
Originally posted by @cts3 in #199 (comment)
The text was updated successfully, but these errors were encountered: