Bug 566759 - [15] Renaming record accessor method does not rename record component
Summary: [15] Renaming record accessor method does not rename record component
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: BETA J15   Edit
Assignee: Kalyan Prasad Tatavarthi CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-09-08 03:38 EDT by Kalyan Prasad Tatavarthi CLA
Modified: 2020-09-08 05:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalyan Prasad Tatavarthi CLA 2020-09-08 03:38:02 EDT
With latest beta code, press Alt+Shift+R at '|' in:

package p1;

public record R1(int i) {
	public R1 {
		System.out.println(i);
	}

        public int i|(){
          return i
        } 
}

Change the name to "i0" and press Enter.

the record component does not get renamed.
Comment 1 Kalyan Prasad Tatavarthi CLA 2020-09-08 03:39:34 EDT
two tests

1) testRenameRecordExplicitAccessor
2) testRenameRecordExplicitAccessorFailFieldConflict

are failing in the y-build link below:

https://download.eclipse.org/eclipse/downloads/drops4/Y20200907-1200/testresults/html/org.eclipse.jdt.ui.tests.refactoring_ep417Y-unit-cen64-gtk3-java11_linux.gtk.x86_64_11.html
Comment 2 Eclipse Genie CLA 2020-09-08 03:41:08 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/168976