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

5 jdt.ui and jdt.refactoring tests fail since I20240801-1800 #1565

Closed
iloveeclipse opened this issue Aug 2, 2024 · 7 comments · Fixed by #1566
Closed

5 jdt.ui and jdt.refactoring tests fail since I20240801-1800 #1565

iloveeclipse opened this issue Aug 2, 2024 · 7 comments · Fixed by #1566
Labels
bug Something isn't working regression Regression defect

Comments

@iloveeclipse
Copy link
Member

iloveeclipse commented Aug 2, 2024

Regression from eclipse-jdt/eclipse.jdt.core#2776

I assume test expectations should be adopted, I will look into that.

@iloveeclipse iloveeclipse added bug Something isn't working regression Regression defect labels Aug 2, 2024
@iloveeclipse
Copy link
Member Author

@jjohnstn. @stephan-herrmann : IMO current expectations of AdvancedQuickAssistTest1d7, InlineTempTests and InlineConstantTests are correct, so the change eclipse-jdt/eclipse.jdt.core#2776 caused a regression.
I don't know whether that should be fixed in UI or core, please check.

@stephan-herrmann
Copy link
Contributor

@jjohnstn. @stephan-herrmann : IMO current expectations of AdvancedQuickAssistTest1d7, InlineTempTests and InlineConstantTests are correct, so the change eclipse-jdt/eclipse.jdt.core#2776 caused a regression. I don't know whether that should be fixed in UI or core, please check.

Regarding InlineTempTests please see eclipse-jdt/eclipse.jdt.core#2776 (comment)

I haven't analyzed why those tests succeeded before (at which compliance?), but @jjohnstn and myself concluded that more is needed in JDT/UI, because inspecting the code prior to the refactoring simply doesn't provide sufficient information at compliance 1.8+.

@iloveeclipse
Copy link
Member Author

Compliance is 1.8.

@stephan-herrmann
Copy link
Contributor

Compliance is 1.8.

I was asking about compliance before eclipse-jdt/eclipse.jdt.core#2551

@iloveeclipse
Copy link
Member Author

Compliance is 1.8.

I was asking about compliance before eclipse-jdt/eclipse.jdt.core#2551

Why is this important? The test was green after eclipse-jdt/eclipse.jdt.core#2551 and broken after eclipse-jdt/eclipse.jdt.core#2776.

@stephan-herrmann
Copy link
Contributor

Why is this important?

Refactoring used a mechanism from 1.7, which is not useful in 1.8. When it passed at 1.8 it was by accident.

@jjohnstn
Copy link
Contributor

jjohnstn commented Aug 2, 2024

Hi @iloveeclipse The code in JDT UI needs to be altered. The code was using a flag that wasn't being set 1.8 +. This caused an error in one test that you disabled. @stephan-herrmann fixed the flag but the code in UI still isn't correct in that it isn't able to calculate whether the cast is really needed or not. I propose that the code leave out the cast and then when it tests for errors with the new code, go back and cast any occurrences where noted by the compilation failures. As mentioned, the simplest hack for the present is to not do the cast until the logic gets changed. I intend to try and do that next week. I'll post a PR shortly (disablement) until I have time next week (it is a long weekend here in Canada).

jjohnstn added a commit to jjohnstn/eclipse.jdt.ui-1 that referenced this issue Aug 2, 2024
- flag being used to determine this is no longer the only thing that
  needs to be checked so disable using it temporarily
- fixes eclipse-jdt#1565
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants