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

Fixing rename for permitted subclasses. #7977

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lahodaj
Copy link
Contributor

@lahodaj lahodaj commented Nov 21, 2024

Having something like:

sealed interface I permits Subtype {}
final class Subtype implements I {}

Renaming Subtype will not rename the identifier in the permits clause. This is because:

a) the write model (CausalDiff) does not support permits
b) the indexing does not include the permitted subclasses.

This PR is trying to fix both.

@lahodaj lahodaj added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) LSP [ci] enable Language Server Protocol tests labels Nov 21, 2024
@lahodaj lahodaj added this to the NB25 milestone Nov 21, 2024
@lahodaj lahodaj requested review from mbien and sdedic November 21, 2024 08:49
@lahodaj lahodaj marked this pull request as draft November 21, 2024 09:55
@lahodaj
Copy link
Contributor Author

lahodaj commented Nov 21, 2024

(Found a problem in the patch.)

@lahodaj lahodaj marked this pull request as ready for review November 22, 2024 06:55
@lahodaj
Copy link
Contributor Author

lahodaj commented Nov 22, 2024

Should be fixed now, and ready for review. Please let me know what you think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) LSP [ci] enable Language Server Protocol tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant