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
Tracing code fails as of Java19 #2018
Comments
This page says that getId is replaced by threadId in Java 19 so the change should be not hard. The Umple code that uses thread getID is at cruise.umple/src/generators/Generator_CodeJava.ump line 3382 where it says
The only catch is that we need to know when this change will take over as it will restrict the applicability of generated code. If we roll it out it will force users to use Java 19 Java 19 doc is here As of the time of this issue Umple supports Long term stable versions 11 and 17 Possiblity A for interim solution is to add @SuppressWarnings("deprecation") to the methods that use Thread.getId. THen wait until Java 21 comes out in Fall 2025 (the next long term support release) and some time after that make the API change and require use of Java 19 to 25 (with either stable version 21 or stable version 25. The challenge with that is ensuring the correct various generated methods that use tracing have the deprecation annotation added before them ... and then changing all the tests. Possibility B is to fix the test code so it doesn't fail when run in Java 19. |
Adding deprecation suppression to tracing examples issue #2018
This pull request is being left open until likely 2025, when the cruise.umple/src/generators/Generator_CodeJava.ump can be changed to use the new API, at which time Java19 would be the lowest version that could be used. |
(see comments at the end ... this issue has to wait for several years ... a partial workaround was done in Feb 2023 through PR #2022)
Tests of Umple tracing code are failing as of Java 19, due to deprecations.
We need to make changes such that tracing works from Java 11 onwards (or at least Java 17 onwards)
The examples that fail from the build are:
The text was updated successfully, but these errors were encountered: