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

Suboptimal/No code completion suggestions for switching on sealed interfaces #3302

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

@srikanth-sankaran srikanth-sankaran self-assigned this Nov 13, 2024
@srikanth-sankaran srikanth-sankaran added this to the 4.34 RC1 milestone Nov 13, 2024
@srikanth-sankaran
Copy link
Contributor Author

@jarthana - this passes RunModelTests

Fix is simple. Remove the wrong gate at JDK17 and replace it with JDK21 where enhanced switches became available.
Also a bunch of tests had to be moved from wrong home to right home and expectations adjusted

This can give a usability boost and so should be included for 4.34

CI appears stalled - simply says queued and doesn't run the tests

@srikanth-sankaran
Copy link
Contributor Author

Thanks for the review and approval @jarthana - in the absence of this fix, the scenario in #3300 is completely broken!!

@jarthana
Copy link
Member

+1 for RC1. Let's wait for the tests to run.

@srikanth-sankaran
Copy link
Contributor Author

+1 for RC1. Let's wait for the tests to run.

@jarthana Tests are green. Please advice if there is scope for this to go into RC1. Or if it should wait for RC2.

@jarthana
Copy link
Member

@MohananRahul are there any more builds for RC1?

@jarthana
Copy link
Member

I had an offline discussion with Rahul who confirmed we have two more builds for RC1.
@srikanth-sankaran yes, please proceed with merging the PR.

@srikanth-sankaran
Copy link
Contributor Author

Thanks Jay!

@srikanth-sankaran srikanth-sankaran merged commit 74ec8f9 into eclipse-jdt:master Nov 13, 2024
9 of 10 checks passed
@srikanth-sankaran srikanth-sankaran deleted the Issue3300 branch November 13, 2024 10:40
@stephan-herrmann
Copy link
Contributor

Also a bunch of tests had to be moved from wrong home to right home and expectations adjusted

@srikanth-sankaran Was that a one time correction, i.e., have tests been placed in the wrong class initially, or is our strategy where to place tests suboptimal? For features with several preview versions I don't think we want to routinely move tests from one test class to another (for the sake of history of course).

@srikanth-sankaran
Copy link
Contributor Author

Also a bunch of tests had to be moved from wrong home to right home and expectations adjusted

@srikanth-sankaran Was that a one time correction, i.e., have tests been placed in the wrong class initially, or is our strategy where to place tests suboptimal? For features with several preview versions I don't think we want to routinely move tests from one test class to another (for the sake of history of course).

Here is the picture before the fix:

  • Completion suggestions were offered for switching on Objects at compliance 17. They should not be.
  • Completion suggestions were NOT offered for switching on Objects at compliance 21. They should be.
  • Test was placed in compliance level 17 suite.

Once I corrected the first two, the old tests in 17 suite started failing and had to be moved to the new home.

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

Successfully merging this pull request may close these issues.

[content assist] Suboptimal/No code completion suggestions for switching on sealed interfaces
3 participants