Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse.org-committers] Users of projectlombok.org at eclipse.org?

> Are there any concerns about using Project Lombok at Eclipse?

Lombok creates an incompatible dialect of the Java language and it modifies the IDE and the compiler in unsupported ways. While the goal sounds noble, Lombok can't be shipped with Eclipse in its current form.

See e.g. http://jnb.ociweb.com/jnb/jnbJan2010.html#controversy and
http://www.reddit.com/r/programming/comments/9bb1e/project_lombok_automatic_resource_management_for/c0c5f7o

Markus



From: Marcel Bruch <bruch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: eclipse.org-committers@xxxxxxxxxxx,
Date: 2012-01-03 23:14
Subject: [eclipse.org-committers] Users of projectlombok.org at eclipse.org?





Hi there,

before we start: A happy new year!

Little more than a month ago Denis mentioned that this list's purpose is to ask questions related to committer topics. So here is one that bothers me for a while now (hope this list is the right place to ask this question).

I frequently stumble over little annoying things like missing toString methods, boilerplate code for getters and setters, as well as "implementing hashCode" and "equals" etc. Most implementations look the same. For instance, hashCode, toString and equals almost always look as follows in our code:

public int hashCode(){
  return org.apache.commons.lang3.HashCodeBuilder.reflectiveHashCode(this)
}

public boolean equals(Object other){
  return org.apache.commons.lang3.EqualsBuilder.reflectiveEquals(this,other)
}

public String toString(){
  return org.apache.commons.lang3.ToStringBuilder.reflectiveToString(this)
}

Project Lombok aims to assist developers here by using annotations such as @ToString or @EqualsAndHashCode. See the screencast on
http://projectlombok.org/ for more details on it. http://projectlombok.org/features/ gives a pretty fast overview of its features. It seems that there is also an integration into Eclipse and into Maven to run the code generation as part of your build. For the IDE Integration Lombok patches the code so that it "sees" the generated methods but does not require you to actually write it in source.


My questions to the list:

Does any project/committer use Project Lombok?
Does any project/committer use Spring Roo (which seems to be "not that far away")?
Are there any concerns about using Project Lombok at Eclipse?


Thanks,
Marcel

--
Eclipse Code Recommenders:
w
www.eclipse.org/recommenders
tw
www.twitter.com/marcelbruch
g+
www.gplus.to/marcelbruch
_______________________________________________
eclipse.org-committers mailing list
eclipse.org-committers@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse.org-committers

IMPORTANT: Membership in this list is generated by processes internal to the Eclipse Foundation.  To be permanently removed from this list, you must contact emo@xxxxxxxxxxx to request removal.




Back to the top