Comments (7)
๐ค voidstar ย ๐ Aug 09, 2009 at 17:01 UTC
What steps will reproduce the problem?
- unzip
- ant compile
What is the expected output? What do you see instead?
ray@ featuritis:~/projects/lombok_extra>ant compile
Buildfile: build.xml
compile:
[mkdir] Created dir: /Users/ray/projects/lombok_extra/build/lombok
[javac] Compiling 1 source file to /Users/ray/projects/lombok_extra/build/lombok
[javac] Compiling 1 source file to /Users/ray/projects/lombok_extra/build/lombok
[javac] /Users/ray/projects/lombok_extra/src/lombok/javac/handlers/HandleGet.java:81:
createGetterForField(lombok.AccessLevel,lombok.javac.JavacAST.Node,lombok.javac.JavacAST.No
de,com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition,boolean) in
lombok.javac.handlers.HandleGet cannot be applied to
(lombok.AccessLevel,lombok.javac.JavacAST.Node,lombok.javac.JavacAST.Node,java.lang.Object,
boolean)
[javac] return this.createGetterForField(level, fieldNode, annotationNode,
annotationNode.get(), true);
[javac] ^
[javac] 1 error
BUILD FAILED
/Users/ray/projects/lombok_extra/build.xml:70: Compile failed; see the compiler error output
for details.
What version of the product are you using? On what operating system?
v0.8.3
Please provide any additional information below.
from lombok.
๐ค voidstar ย ๐ Aug 09, 2009 at 17:01 UTC
from lombok.
๐ค reinierz ย ๐ Aug 10, 2009 at 18:14 UTC
Congratulations; you found a javac bug.
We'll have to rewrite how AST's generics works, which is non-trivial. Don't hold your breath :(
lombok.javac.JavacAST.Node should be castable to a lombok.core.AST.Node but it isn't. It works for
lombok itself because as long as all relevant classes are compiled in the same run, it does work - it fails when
part of the classes are already in .class form.
from lombok.
๐ค voidstar ย ๐ Aug 11, 2009 at 01:05 UTC
Thanks for looking into it.
I can make it compile by adding just lombok.javac.JavacAST.java (and EclipseAST.java for the eclipse handler).
Not quite as bad as having to fork the whole project, although it would be nice to depend only on the lombok jar.
This workaround will save me having to hold my breath though, so thanks for the push in the right direction :)
from lombok.
๐ค reinierz ย ๐ Oct 16, 2009 at 08:43 UTC
Fixed in commit b5c8b72 - should be out in v0.9.
from lombok.
๐ค reinierz ย ๐ Oct 16, 2009 at 08:49 UTC
from lombok.
End of migration
from lombok.
Related Issues (20)
- @FieldDefaults: Keep the global setting experimental, make the annotation permanent.
- [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
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.