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

Sort Members doesn't sort methods of record classes #1113

Open
rfcom opened this issue Feb 13, 2023 · 1 comment
Open

Sort Members doesn't sort methods of record classes #1113

rfcom opened this issue Feb 13, 2023 · 1 comment

Comments

@rfcom
Copy link

rfcom commented Feb 13, 2023

Create a record class for e.g. like this:

public record MyRecord() {
 public void methodB() {
 }
 public void methodA() {
 }
 public void methodC() {
 }
}

Then select Source > Sort Members... > Sort all members > OK in the menu.

Result:

Nothing happens. The Methods are not sorted as configured in the "Member Sort Order" preference page.

Expected result:

Methods are sorted as configured in the "Member Sort Order" preference page.

@mpalat
Copy link

mpalat commented Apr 7, 2023

@noopur2507 @jjohnstn - By first glance, this looks like a jdt.ui issue. Could you please check? TIA

@srikanth-sankaran srikanth-sankaran transferred this issue from eclipse-jdt/eclipse.jdt.core Jan 20, 2024
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