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

Update to Java 21 #27

Merged
merged 5 commits into from
Apr 15, 2024
Merged

Update to Java 21 #27

merged 5 commits into from
Apr 15, 2024

Conversation

mx990
Copy link
Member

@mx990 mx990 commented Apr 9, 2024

No description provided.

@mx990
Copy link
Member Author

mx990 commented Apr 9, 2024

As part of this PR, I have also updated the project settings to explicitly specify Java 21 compliance. The project settings now also explicit;y set Xtend code generation to Java 17. This has to remain until eclipse/xtext#2686 is complete.

@mx990 mx990 requested a review from azoitl April 9, 2024 18:56
Java 21 adds List.getLast(), which throws an exception if the list is
empty. Xtend also has an extension method getLast(), which returned
null. Since the Java 21 method is declared directly in List, it has
precedence over the extension method, which changes the behavior of
existing Xtend code. This change fixes the problematic cases where
getLast is called in Xtend code.
Copy link

Test Results

    95 files  ±0      95 suites  ±0   39s ⏱️ -1s
27 181 tests ±0  27 181 ✅ ±0  0 💤 ±0  0 ❌ ±0 
27 182 runs  ±0  27 182 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9f0db74. ± Comparison against base commit f60d7af.

@bwiesmayr bwiesmayr merged commit 1938c5d into eclipse-4diac:develop Apr 15, 2024
4 checks passed
@mx990 mx990 deleted the java21 branch April 15, 2024 11:17
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.

None yet

3 participants