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

replace obsolete reflection usage with original method calls #3205

Conversation

mehmet-karaman
Copy link
Contributor

@mehmet-karaman mehmet-karaman commented Sep 25, 2024

Replaced some/ Adjusted reflection usages.

@cdietrich
Copy link
Contributor

@mehmet-karaman can you please rebase this on the lastest main

Copy link

github-actions bot commented Sep 25, 2024

Test Results

  6 460 files  ± 0    6 460 suites  ±0   3h 9m 28s ⏱️ - 5m 10s
 43 242 tests ± 0   42 652 ✅  - 6    584 💤 ±0   6 ❌ + 6 
170 344 runs  +36  167 930 ✅  - 6  2 358 💤 ±0  54 ❌ +40  2 🔥 +2 

For more details on these failures, see this check.

Results for commit 70baf17. ± Comparison against base commit 531d040.

♻️ This comment has been updated with latest results.

@mehmet-karaman mehmet-karaman force-pushed the replace_reflection_by_original_method_calls branch from 1b4ad9f to ef1576c Compare September 25, 2024 12:30
@mehmet-karaman
Copy link
Contributor Author

rebase done.

@mehmet-karaman
Copy link
Contributor Author

Something looks really odd.. I am going to check that..

@cdietrich
Copy link
Contributor

no idea what is happening here neither
do you @LorenzoBettini
why did the rebase not help?

@cdietrich
Copy link
Contributor

@mehmet-karaman can you try to ammend the commit with a new date e.g. --date=now

@mehmet-karaman
Copy link
Contributor Author

mehmet-karaman commented Sep 25, 2024

No, I use egit "Rebase interactive" for rebasing. Maybe my fork is not correctly in sync..

@cdietrich
Copy link
Contributor

github says it is
grafik
but i dont know if it thinks there is no change.
thus my proposal.
dont know how to do this in egit. maybe you can ask andrey

@cdietrich
Copy link
Contributor

git command would be git commit --amend --no-edit --date=now

@mehmet-karaman mehmet-karaman force-pushed the replace_reflection_by_original_method_calls branch from ef1576c to 20314d1 Compare September 25, 2024 13:20
@cdietrich
Copy link
Contributor

seems to have helped. jobs started again. lets see what happens

@LorenzoBettini
Copy link
Contributor

I don't understand the original problem: the build had restarted with no failure. Now the build fails with a compilation error: has jdt just removed a field from CompilerOptions?

@mehmet-karaman
Copy link
Contributor Author

eclipse-jdt/eclipse.jdt.core@59bc0be

This one seems to be the commit, which breaks it.

@mehmet-karaman
Copy link
Contributor Author

mehmet-karaman commented Sep 25, 2024

@iloveeclipse is there any suggestion what we can use instead of CompilerOptions.originalComplianceLevel ?

Maybe a new commit with CompilerOptions.complianceLevel instead of CompilerOptions.originalComplianceLevel ?

@mehmet-karaman
Copy link
Contributor Author

the compilation error should be fixed with the other PR:

#3206

If the CompilerOptions are obsolete, then logically they are also obselete for xtext.. or isn't it?

@cdietrich
Copy link
Contributor

Does the removal work with old jdt s
Or do we need to do more reflection

@cdietrich
Copy link
Contributor

See the other issue from 2 weeks ago

@LorenzoBettini LorenzoBettini mentioned this pull request Sep 26, 2024
2 tasks
@mehmet-karaman
Copy link
Contributor Author

Since the least java version was set to 1.8 it should work with older versions.. The addSuppressed method is visible in java 1.8 so it shuld work.

The other changes were regarding the workarounds for eclipse oxygen and older, which isn't supported anymore.. So my viewpoint is that it should work with all supported jdk's and eclipse versions.

@mehmet-karaman mehmet-karaman force-pushed the replace_reflection_by_original_method_calls branch from d4b2a1d to 404bc8d Compare September 26, 2024 11:25
@mehmet-karaman mehmet-karaman force-pushed the replace_reflection_by_original_method_calls branch from 404bc8d to f42b536 Compare September 27, 2024 09:45
@mehmet-karaman mehmet-karaman force-pushed the replace_reflection_by_original_method_calls branch from f42b536 to 70baf17 Compare September 27, 2024 09:47
@mehmet-karaman
Copy link
Contributor Author

@cdietrich do you have an idea why there are test failures? My branch is up to date, nothing to rebasese.. The build was successful before I've added this method back, so the failures makes no sensee for me.

@cdietrich
Copy link
Contributor

no. i have restarted the job

@cdietrich cdietrich merged commit a41f7bb into eclipse-xtext:main Sep 27, 2024
9 checks passed
@cdietrich
Copy link
Contributor

thx @mehmet-karaman

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.

3 participants