Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 568607

Summary: Unable to rename classes (but not package-info.java)
Product: [Eclipse Project] JDT Reporter: Oskar Balcerzak <monniasza.machines>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
This log contains renaming error none

Description Oskar Balcerzak CLA 2020-11-07 04:05:23 EST
Created attachment 284702 [details]
This log contains renaming error

Steps to reproduce:
1. Create a package
2. Create a class
3. Rename package-info.java
4. Rename the class

Plug-ins used:
WindowBuilder 1.9.4
Kotlin 0.8.21
Unnecessary Code Detector 2.0.0
Eclipse Color Theme 1.0.0

Expected result:
Both files are renamed

Actual result:
Only package-info.java is renamed

Error message:
Expecting a stackmap frame at branch target 40
Exception Details:
 Location:

org/eclipse/jdt/internal/debug/core/refactoring/BreakpointChange.apply(Lorg/eclipse/jdt/debug/core/IJavaBreakpoint;)< @22: goto
 Reason: Expected stackmap frame at this location
Comment 1 Gunnar Wagenknecht CLA 2020-11-07 11:08:05 EST
Moving to JDT
Comment 2 Oskar Balcerzak CLA 2020-11-07 13:02:20 EST
Edit: It is a conflict between Unnecessary Code Detector and Kotlin.
Comment 3 Andrey Loskutov CLA 2020-11-07 13:39:34 EST
(In reply to Oskar Balcerzak from comment #2)
> Edit: It is a conflict between Unnecessary Code Detector and Kotlin.

So we can close this as invaild?
Comment 4 Oskar Balcerzak CLA 2020-11-08 04:38:09 EST
(In reply to Andrey Loskutov from comment #3)
> (In reply to Oskar Balcerzak from comment #2)
> > Edit: It is a conflict between Unnecessary Code Detector and Kotlin.
> 
> So we can close this as invaild?

Yes, reported on Kotlin as https://youtrack.jetbrains.com/issue/KE-385