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

Projects

None yet

2 participants

@lombokissues
Collaborator

Migrated from Google Code (issue 320)

@lombokissues
Collaborator

๐Ÿ‘ค 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
Collaborator

๐Ÿ‘ค jwnimmer@jaybridge.com ย  ๐Ÿ•— Dec 20, 2011 at 15:27 UTC

๐Ÿ”— ProjectName.tgz

@lombokissues
Collaborator

๐Ÿ‘ค askoning ย  ๐Ÿ•— Dec 22, 2011 at 12:26 UTC

@lombokissues lombokissues added the gwt label Jul 14, 2015
@lombokissues
Collaborator

๐Ÿ‘ค jwnimmer@jaybridge.com ย  ๐Ÿ•— Dec 22, 2011 at 22:12 UTC

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

@lombokissues
Collaborator

๐Ÿ‘ค jwnimmer@jaybridge.com ย  ๐Ÿ•— Dec 22, 2011 at 22:12 UTC

๐Ÿ”— lombok320.txt View file

@lombokissues
Collaborator

๐Ÿ‘ค 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
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Jan 02, 2012 at 20:19 UTC

@lombokissues lombokissues removed the accepted label Jul 14, 2015
@lombokissues
Collaborator

๐Ÿ‘ค 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 lombokissues added this to the 0.10.8 milestone Jul 14, 2015
@lombokissues lombokissues removed the gwt label Jul 14, 2015
@lombokissues
Collaborator

๐Ÿ‘ค jwnimmer@jaybridge.com ย  ๐Ÿ•— Jan 03, 2012 at 15:37 UTC

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

@lombokissues
Collaborator

End of migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment