-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Lombok fails with JDK 10 #1572
Comments
When I do:
I get a different error messages with problematic
Probably because of:
|
Did you tried this one for @Autowired? from JDK8:
|
@yurii-polishchuk Actually I did it other way, I just removed the
|
OK, I've created a minimal working example of problem with JDK 10 at https://github.com/krzyk/lombok-jdk10-example doing
So lombok is not generating getters at all, I tested with Builder and NoArgsContructor, same behavior. I also tried with |
Can someone create And possibly add a pom file, similar to the one in https://github.com/rzwitserloot/lombok/tree/master/docker/maven/files/jdk-9 |
I doubt it'll work, but (tip from ##java's Maldivia): if we add to lombok's manifest: |
the javac version "10-ea" doesn't match Meaning it falls back to version 6, so it ends up looking for TypeTags instead of TypeTag. |
We've improved the version parsing. This might have fixed the TypeTags problem. Can you test this using the edge release? |
We still need to have a look at the |
@rspilker Tried edge release and I get same error (the only difference is lack of "WARNING" for LombockProcessor:
|
The edge release is worked for me with maven build of my project.
I think we need to add "com.sun.tools.javac.main.DelegatingJavaFileManager$DelegatingSJFM" to |
add jdk10.sh to download openjdk10+44 EA. update jdk 9.0.1 -> 9.0.4
Is there any way to use 'edge' release with Maven without installing hte jar locally, that is some kind of snapshots repository ? Are you planning a release which supports JDK10 ? thank you |
Have you got any idea why my example project (https://github.com/krzyk/lombok-jdk10-example) doesn't work with Lombok edge release and JDK 10? |
Have the same problem with Gradle build. When do you plan to release new version? |
Add a JavaFileManager class name to KNOWN_JAVA9_FILE_MANAGERS.
I sent a pull request(#1620) to support IntelliJ build with JDK10. |
@tmurakam does it help with maven/gradle build also? |
@krzyk I can compile your project with my patch using maven. |
related to #524 ? |
Building lombok itself on jdk10 didn't work because ecj isn't really compatible with it, but, hey, managed to work around it. lombok itself on jdk10 seems to work fine for me; that's with javac on the command line. Gonna integrate @tmurakam excellent work on this and push out an edge release. |
[fix] Fix intellij build with jdk10 (#1572)
with JDK 10 you will get following error:
see also #1723 |
may it's a lombok-maven-plugin problem.
Sample found here: https://github.com/MCMicS/lombok-examples/blob/15772-without-lombok-maven/pom.xml |
Still occurs with latest Edge Release |
I posted a fix for this issue using Gradle at: https://stackoverflow.com/questions/55227728/cannot-find-symbol-error-lombok-1-18-6-does-not-work-with-gradle-5-2-1-jdk-10 Thanks. |
Seems to work with |
just try it with Java version 1.8 and also with lombok version 1.16.18.. It should work out. |
Thx~~ 1.18.8 nice |
[INFO] BUILD FAILURE |
@Paromita23 I'm not sure that's actually relevant to this particular issue. If you're still running into this with lombok 1.18.12, open a new bug report, do use the -e/-X switches (because without an actual stack trace or a test project to reproduce this error, it's not possible for us to fix it, of course), and include a test project so we can reproduce it. |
@Paromita23 I think this is not a issue related to lombok version or your jdk version. So you must raise the issue or give the exact versions you are using for this project. |
at least 2-years BUG 8-) |
use this
|
update lombok version for win10 compile error projectlombok/lombok#1572
update lombok version for win10 compile error projectlombok/lombok#1572
…o Collection type. update lombok version for win10 compile error projectlombok/lombok#1572
…o Collection type. update lombok version for win10 compile error projectlombok/lombok#1572
update lombok version for win10 compile error projectlombok/lombok#1572
EDIT: See #1572 (comment) for minimal example
I tried to build a project with JDK 10, so we could make lombok work with it sooner than it was with JDK 9.
(the build works with JDK 9, so changed compiler to JDK 10)
lombok 1.6.20
Maven version:
Java version:
And the maven build fails with:
The text was updated successfully, but these errors were encountered: