这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG] Eclipse 4.23 refactor/rename from within Java Source Editor throws java.lang.VerifyError: Bad type on operand stack #3134

@andi-huber

Description

@andi-huber

Given a fresh Eclipse install from upcoming 4.23.0 Release (Candidate Build: 4.23RC2a), it appears that when Lombok is installed as java agent in eclipse.ini

...
-vmargs
-javaagent:xxx\eclipse\lombok-1.18.22.jar
...

the Eclipse refactor feature no longer works from within the Source Editor window.

NOTICE

UPDATE March 22, 2022
A snapshot build (to use before release v1.18.24), that fixes the issue, is provided here https://github.com/projectlombok/lombok/files/8274291/lombok.zip

To Reproduce
Given plain Java (no Lombok) ...

public static void main(String[] args) {
   var message = "Hallo World";
   System.out.println(message);
}

when trying to refactor/rename the message variable (e.g. select the text and use the context menu), Eclipse throws a java.lang.VerifyError.

Version info:

  • Lombok version 1.18.22, but also a latest build from the 'master' branch has same issue
  • Platform Windows with Java 17.0.2 as shipped with the Eclipse Release Candidate (Candidate Build: 4.23RC2a)

Additional context
Eclipse also has a Code Outline view, from where one can initiate a refactor/rename e.g. on class fields. It appears that with that there are no issues.

Metadata

Metadata

Assignees

Labels

acceptedThe issue/enhancement is valid, sensible, and explained in sufficient detailbugeclipse

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions