Skip to content

Conversation

@jjohnstn
Copy link
Contributor

What it does

Exposes refactoring to convert from class to record that is used by the new quick-assist.

How to test

See new tests.

Author checklist

- modify ConvertToRecordRefactoring.checkInitialConditions() to allow
  private fields to not have a constructor and to convert the
  ICompilationUnit to CompilationUnit if fASTRoot is not specified
  plus add more specific error messages
- add RefactoringAvailabilityTester support for convert to record
- add convert to record support to RefactoringExecutionStarter and
  to RefactorActionGroup
- add necessary definitions to jdt.ui plugin.xml
- add new ConvertToRecordWizard and ConvertToRecordAction classes
@jjohnstn jjohnstn self-assigned this Jan 30, 2026
@jjohnstn jjohnstn added enhancement New feature or request noteworthy Noteworthy feature labels Jan 30, 2026
@jjohnstn jjohnstn added this to the 4.39 M3 milestone Jan 30, 2026
@jjohnstn jjohnstn changed the title Refactorrecord Add new convert to record refactoring to refactoring menu Jan 30, 2026
@jjohnstn jjohnstn merged commit 82d7700 into eclipse-jdt:master Jan 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request noteworthy Noteworthy feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant