Skip to content
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

[BUG] 1.18.12 Internal Compiler Error in Eclipse 2020-03 (4.15.0) JRE 1.8.0-231 #2448

Closed
jm98 opened this issue May 1, 2020 · 6 comments
Closed

Comments

@jm98
Copy link

jm98 commented May 1, 2020

Describe the bug
After creating a maven project I could not get the @ExtensionMethods to work. Every build generates Internal compiler error: java.lang.ArrayIndexOutOfBoundsException TestSystem.java /lomboktest/src/main/java/lomboktest line 0 Java Problem

To Reproduce
lomboktest.zip
contains the project
You'll need to pull the version of the JRE (1.8.0-231) for yourself

The example code is from the web page description of ExtensionMethods

Expected behavior
It should compile

Version info (please complete the following information):

  • Lombok version: 1.18.12
  • Platform Eclipse 2020-03 (4.15.0) with JRE 1.8.0-231

Additional context
I switched to Eclipse after issues with IntelliJ IDEA

@Rawi01
Copy link
Collaborator

Rawi01 commented May 1, 2020

I'm quite sure that this one is already fixed in the latest edge build (PR: #2376)

@jm98
Copy link
Author

jm98 commented May 3, 2020

Reading #2376 it does talk about a maven issue. The attached zipfile is a maven project.
If it is a maven related bug could somebody please tell me how to get a work around so that I can do a demo that is promoting the use of lombok

@Rawi01
Copy link
Collaborator

Rawi01 commented May 3, 2020

No one mentioned maven because it doesn't really matters in eclipse. If you run normal builds (e.g. builds after saves or Run as -> Java Application) eclipse uses it's own compiler (ejc). This also happens if a project uses maven. Run as -> Maven build invokes the real maven process and uses the compiler defined in your pom.xml (usually javac).
Your error message looks like an eclipse message (ejc) and the exception is the same that is mentioned in the PR. Have you tried installing the edge build (https://projectlombok.org/download-edge)?

@jm98
Copy link
Author

jm98 commented May 3, 2020

@Rawi01 any chance you could post an updated pom.xml for the project that I uploaded in the original post. I'm struggling with getting my head around java IDEs as I've literally just started after spending 15 years in C# and Visual Studio.
I copied the resource and dependencies form the down load page into the pom but and still got the error.
I really want to get this working for a demo on how Extension Methods assist in applying Functional programming techniques within Java8

@Rawi01
Copy link
Collaborator

Rawi01 commented May 3, 2020

@jm98 You have to update the installed lombok version, only updating the maven mananged version is not sufficient. Just install the edge version as you did before or simply replace the lombok.jar in you eclipse directory or update the path to the jar in your eclipse.ini. Make sure to close and restart eclipse after the installation.

@jm98
Copy link
Author

jm98 commented May 4, 2020

@Rawi01 thanks - now compiles in eclipse

@Rawi01 Rawi01 closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants