Comments (12)
👤 reinierz 🕗 Sep 15, 2009 at 07:22 UTC
Presumably something @ Data does.
http://groups.google.com/group/project-lombok/browse_thread/thread/f35a751139c8e90d
from lombok.
👤 r.spilker 🕗 Sep 15, 2009 at 09:58 UTC
Actually, fixing issue #120 would
take care of this.
from lombok.
👤 reinierz 🕗 Sep 15, 2009 at 11:54 UTC
It would, but, there's a bug here which is why its a separate issue: ALL field access should be qualified (with
this.), to avoid namespace clashes with e.g. a statically imported field. Sure, that would be rare, but nevertheless,
all generated field accesses should always be of the 'this.foo' form.
Status is 'new' because I'm pretty sure we DO qualify all accesses. First need to find out where we're forgetting it.
from lombok.
👤 [email protected] 🕗 Sep 15, 2009 at 21:54 UTC
package lombokTest;
//Using lombok 0.8.5
import lombok.ToString;
/**
- A simple bean.
- @ author Fabian Kürten
/
@ ToString // <-- Warning happens in this line;
// Unqualified access to the field SimpleBean.data
public class SimpleBean
{
/*- Just a field
*/
private String data;
}
- Just a field
from lombok.
👤 reinierz 🕗 Sep 23, 2009 at 05:46 UTC
Fixed in 35691e8 - should be live in the next major lombok release (I'm
guessing it'll be called v0.9 the way things are looking right now).
from lombok.
👤 [email protected] 🕗 Mar 14, 2010 at 21:58 UTC
I am afraid I still experience this bug, though now on a different annotation.
In my eclipse dir:
$ java -jar lombok.jar --version
0.9.2
In projects classpath:
/home/fabian/.m2/repository/org/projectlombok/lombok/0.9.2/lombok-0.9.2.jar
The source:
package lombokTest;
// Using lombok 0.9.2
import lombok.EqualsAndHashCode;
/**
- A simple bean.
- @ author Fabian Kürten
/
@ EqualsAndHashCode // <-- Warning happens in this line;
// Unqualified access to the field SimpleBean.data
public class SimpleBean
{
/*- Just a field
*/
private String data;
}
- Just a field
This also happens on others.
Know I wonder: Did you miss this one while fixing the other or do I fail at upgrading?
Attached you will find three files (test cases, though not automated) of which only
the second succeeds.
from lombok.
👤 [email protected] 🕗 Mar 14, 2010 at 21:58 UTC
from lombok.
👤 [email protected] 🕗 Mar 14, 2010 at 21:58 UTC
from lombok.
👤 [email protected] 🕗 Mar 14, 2010 at 21:58 UTC
from lombok.
👤 reinierz 🕗 Mar 15, 2010 at 22:56 UTC
We probably forgot to catch it. We don't have the 'unqualified access' warning on, and a conflict is rare. We'll get
around this fixing this.
from lombok.
👤 reinierz 🕗 Jul 17, 2010 at 22:36 UTC
We double checked everything - as far as I can tell they're all qualified now. Notably including @ Synchronized, where this technically could even lead to faulty generated code if you have a parameter named $lock.
See commit 8869e97
from lombok.
End of migration
from lombok.
Related Issues (20)
- [FEATURE] Allow to easily add interfaces to Builders
- [BUG] Support for Eclipse 2024-06 (4.32) HOT 14
- [FEATURE] Super Constructor
- [FEATURE] enhance @FieldNameConstants with specific prefix string HOT 2
- [BUG] SuperBuilder does not compile then binding generics to an array HOT 5
- [BUG] SaSessionForFastjsonCustomized类中的getModel报错 HOT 1
- [FEATURE] setX() for mutable state, fluent otherwise HOT 2
- [BUG] Lombok 1.18.34 (Edit updated) not working with eclipse 24-06 HOT 3
- [QUESTION} How to build lombok using JDK21 (javac)
- Support for an entirely new constructor generation HOT 2
- [FEATURE] Support for use extension method within the same class it was declared in
- [@ToStringJSON, @ToStringJSONPretty] Please add feature when class have some others lombok JSON. For default actual mode of lombok ToString. HOT 1
- [BUG] Lombok with Java 21 Compilation failure with v1.18.32
- [BUG] Warning when using @StandardException with the -Xlint:this-escape compiler flag
- [BUG] Potential NPE in EclipseHandlerUtil.setDocComment(..) HOT 1
- [BUG] @Delegate throwing null pointer exception on enums
- [BUG] `@Getter` with `AccessLevel` and `onMethod_` causes a compile error
- [BUG] `StringIndexOutOfBoundsException` in `EclipseHandlerUtil.getDocComment()`
- [BUG] Encountering stack overflow error when building spring app with lombok. HOT 2
- Apache CXF cxf-rt-frontend-jaxws breaks lombok processing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lombok.