-
Notifications
You must be signed in to change notification settings - Fork 631
Lombok + Eclipse compiler problem #969
Comments
Update: |
I added scripts to my example projects that directly compile the code via command line using eclipse compiler. Thus, I guess the problem really seems to come either from the IDEA lombok plugin or the integration of this plugin with IDEA. |
Hello @eilensm, |
Hi, I finally managed to debug it and developed a small fix that solves the problem. This probem is unrelated to the InteliJ annotation processing change as lombok uses a javagent for eclipse/ecj. |
@Rawi01 Thank you very much! |
…causing corrupt classfiles Would crash with java.lang.ClassFormatError: Extra bytes at the end of class file de/lomboktest/Application Fixes mplushnikov/lombok-intellij-plugin#969 figuring out the problem was the hard work - credits to @Rawi01 for discovering this
Fixed in lombok (slightly different take on the fix, but the hard work was figuring out what was wrong – all credit goes to @Rawi01), will be in next release. |
Short description
The combination of Lombok and the Eclipse compiler produces illegal class files (contains the "normal" byte code twice).
Also see my issue in the IntelliJ IDEA forum: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009866900-Lombok-Eclipse-compiler-problem-java-lang-ClassFormatError-Extra-bytes-at-the-end-of-class-file-
Expected behavior
Usage of lombok and Eclipse compiler produces executable byte code
Version information
IDEA Version:
IntelliJ IDEA 2020.2.3 (Ultimate Edition)
Build #IU-202.7660.26, built on October 6, 2020
Runtime version: 11.0.8+10-b944.34 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 4029M
Cores: 8
Registry: debugger.watches.in.variables=false
Non-Bundled Plugins: com.alayouni.ansiHighlight, EclipseCodeFormatter, Lombook Plugin, PIT mutation testing Idea plugin, com.dubreuia, com.oliverlockwood.plugins.jenkinsfile, com.intellij.plugins.watcher, com.renemaas.intellij.zipper, mobi.hsz.idea.nodesecurity, net.seesharpsoft.intellij.plugins.csv, org.exbin.deltahex.intellij, org.sonarlint.idea, intellij.prettierJS, Karma, org.jetbrains.plugins.vue, org.jetbrains.kotlin, org.mapstruct.intellij, org.intellij.scala, training, org.asciidoctor.intellij.asciidoc
JDK Version: jdk1.8.0_202-x86
OS Type & Version: Windows 10
Lombok Plugin Version: 0.32-2020.2
Lombok Dependency Version: lombok-1.18.16.jar
Steps to reproduce
What steps do we need to take to reproduce this issue?
See the sample project included...
Sample project
Please provide a sample project that exhibits the problem.
You should also include
.idea
folder so we can inspect the settings.lombok-test.zip
Additional information
see https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009866900-Lombok-Eclipse-compiler-problem-java-lang-ClassFormatError-Extra-bytes-at-the-end-of-class-file-
Stacktrace
The text was updated successfully, but these errors were encountered: