@Data, Getter, Setter dont work on Eclipse 2019-03 with JDK 11

846 views
Skip to first unread message

Hatti

unread,
May 9, 2019, 7:26:03 AM5/9/19
to Project Lombok
Hoi volks!

i´m using a fresh installation of eclipse 2019-03 EE version with JDK 11 with newest Lombok 1.18.8.
If i use @Data, Getter Setter annotations i get the following compile error 
"The package java.lang is accessible from more than one module: <unnamed>, java.base"
This is reproduceable on a empy project with just following class:

@Getter
public class Kuchen
{
private List<String> kuchens;
}


Reinier Zwitserloot

unread,
May 9, 2019, 8:33:45 AM5/9/19
to Project Lombok
Can't reproduce, and given that we aren't knee-deep in bug reports, I kinda doubt it's as simple as 'lombok is just broken on the current version of eclipse now'.

Can you explain precisely where this error is appearing and how (is it an error in the problems/warnings view, or in the error log view? On what exact line/charpos is it? Is it within eclipse or when you try to compile it outside of eclipse? What plugins are installed? Is this a maven or gradle kinda project or just a plain jane java project?

If it's truly as simple as this, what happens when you install the 'java development' version of eclipse 2019-03?

What kind of platform are you running this on, which JVM is running eclipse (you can see this in eclipse's about dialog)?

Hatti

unread,
May 9, 2019, 8:56:31 AM5/9/19
to Project Lombok
I´ve narrowed down the issue. Its a old Java 6 project i have in my maven dependencies which causes the issue. As soon as i remove it, the Lombok annotations works.
The java 6 library, which is just a utility library, works fine in a non lombok java 11 project. Reproduceable with a empty Java 6 maven project. 
Dunno whats the real issue here and how to solve it (if its even solveable from my side). Any advice would be helpfull!

Mat Jaggard

unread,
May 9, 2019, 2:53:07 PM5/9/19
to project-lombok
What counts as an "empty" Java 6 Maven project? Zero dependencies and no parent pom?

Can you reproduce the problem with none of your existing maven files or code?

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/project-lombok/9960d56b-98a7-4ac9-9667-ea86472c541c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages