Skip to content
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

GWT regression in lombok 0.10.4 (NoClassDefFoundError org/eclipse/jdt/core/dom/ASTNode) #393

Closed
lombokissues opened this issue Jul 14, 2015 · 10 comments
Assignees
Milestone

Comments

@lombokissues
Copy link

Migrated from Google Code (issue 320)

@lombokissues
Copy link
Author

👤 jwnimmer@jaybridge.com   🕗 Dec 20, 2011 at 15:27 UTC

What steps will reproduce the problem?

  1. Run the GWT compiler on lombok-using code. (A sample is attached, but I see this on every project.)
  2. The compiler tries to class-load some JDT code but cannot, so crashes.
  3. This happens on both the command-line and from within eclipse.

What version of the product are you using? On what operating system?

GWT 2.4.0
Lombok 0.10.4 and 0.10.6 in Eclipse 3.7.1 on Ubuntu 10.04
OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.04.2)

Please provide any additional information below.

It appears that the recent eclipse-integration fixes introduced some
<clinit>-time dependencies into the eclipse JDT.

With lombok 0.10.4, gwtc starts to require
org/eclipse/jdt/core/dom/ASTNode
on the classpath; with 0.10.6, gwtc additionally requires
org/eclipse/jdt/core/dom/BodyDeclaration and
org/eclipse/jdt/core/dom/MethodDeclaration.

As a work-around, I can put (all or part of) the eclipse JDT
org.eclipse.jdt.core_3.7.1.v_B76_R37x.jar
on my classpath. Previously, I only had to have GWT's embedded copy
of ECJ on my classpath (i.e., the
org/eclipse/jdt/core/compiler and
org/eclipse/jdt/internal/compiler packages).

@lombokissues
Copy link
Author

👤 jwnimmer@jaybridge.com   🕗 Dec 20, 2011 at 15:27 UTC

🔗 ProjectName.tgz

@lombokissues
Copy link
Author

👤 askoning   🕗 Dec 22, 2011 at 12:26 UTC

@lombokissues
Copy link
Author

👤 jwnimmer@jaybridge.com   🕗 Dec 22, 2011 at 22:12 UTC

I realize I should have included the exception trace, here it is:

@lombokissues
Copy link
Author

👤 jwnimmer@jaybridge.com   🕗 Dec 22, 2011 at 22:12 UTC

🔗 lombok320.txt View file

@lombokissues
Copy link
Author

👤 reinierz   🕗 Jan 02, 2012 at 19:35 UTC

I need to yell at some people for not using transplant() whilst writing the patchers. Or probably yell at my self for not explaining that you need to do that.

Fixed.

You can download the edge release if you can't wait: https://projectlombok.org/download-edge.html

@lombokissues lombokissues added the accepted The issue/enhancement is valid, sensible, and explained in sufficient detail label Jul 14, 2015
@lombokissues
Copy link
Author

👤 reinierz   🕗 Jan 02, 2012 at 20:19 UTC

@lombokissues lombokissues removed the accepted The issue/enhancement is valid, sensible, and explained in sufficient detail label Jul 14, 2015
@lombokissues
Copy link
Author

👤 reinierz   🕗 Jan 02, 2012 at 20:20 UTC

Robbert Jan and I also added a test to make sure this regression won't happen a second time.

@lombokissues
Copy link
Author

👤 jwnimmer@jaybridge.com   🕗 Jan 03, 2012 at 15:37 UTC

Thank you folks, the edge release works great for us now.

@lombokissues
Copy link
Author

End of migration

lianhaijun pushed a commit to lianhaijun/lombok that referenced this issue May 8, 2020
…elombok to prevent double execution of lombok processors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants