-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[BUG] Regression: #2006 breaks Delegate in Tycho #2633
Comments
@Rawi01 lombok.eclipse.agent.PatchDelegateDelegateSourceMethod.forMethodDeclaration(JavaElement, MethodDeclaration) |
@rgra It clearly tries to use classes that are not there in ECJ and adding a check or a second class as you did in your PR should help here. |
@rgra Just checking, because I never quite got the tycho build to work - does the current lombok release (v1.18.20 from April 2nd, 2021) address this issue? |
Describe the bug
Inclusion of the new method PatchDelegate.getChildren(IJavaElement[], SourceTypeElementInfo) from #2006 and according implementation with imports from org.eclipse.jdt.internal.core break compatibility with Tycho (which uses ECJ, didn't test with plain ECJ) because the packages are not available there.
Loading from lombok.eclipse.agent.PatchDelegatePortal.Reflection throws ClassNotFoundExceptions (with -Dlombok.debug.reflection=true).
Thus @DeleGate doesn't work at all with the latest Lombok on Tycho.
To Reproduce
Reproduction would need my changes for Tycho, but should be reproducable with ECJ only as well.
Expected behavior
Delegates should be working on Tycho/ECJ as well.
Version info (please complete the following information):
Additional context
@Rawi01 I think it should work if you can put the additions to a new class and load it seperately in PatchDelegatePortal.
Wouldn't it be good to show the Exceptions when Delegate is actually used. Swallowing makes sense when it's not used, but in this case it took me a long time to figure out what was wrong because I didn't see the exception without the lombok.debug.reflection switch.
The text was updated successfully, but these errors were encountered: