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

[WIP] GraalVM JDK 21 #669

Open
wants to merge 52 commits into
base: main
Choose a base branch
from
Open

[WIP] GraalVM JDK 21 #669

wants to merge 52 commits into from

Conversation

geofjamg
Copy link
Member

@geofjamg geofjamg commented Oct 27, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

JDK version update

What is the current behavior?

In order to use '--pgo-instrument -H:+ProfilingEnableProfileDumpHooks' to instrument for PGO a shared library we need to upgrade to JDK 21. This is not supported with JDK 17.
But there is an issue in JDK 21 that does not allow to use native image with the class path oracle/graal#7712. So we need to wait for a fix or a workaround.
Another issue that have to be solved for upgrading to JDK21: oracle/graal#7759

24/08/04 Still same error with JDK22

Error: Expected Object but got Word for call argument in com.powsybl.python.network.NetworkCFunctions.setWorkingVariant(NetworkCFunctions.java:376). One possible cause for this error is when word values are passed into lambdas as parameters or from variables in an enclosing scope, which is not supported, but can be solved by instead using explicit classes (including anonymous classes).

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
@@ -61,9 +61,9 @@
<version>1.1.0-SNAPSHOT</version>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem with maven version ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will revert this to 17 in this pr to keep java 17 source compatibility, even using jdk 21

Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
# Conflicts:
#	README.md
# Conflicts:
#	cpp/CMakeLists.txt
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
@geofjamg geofjamg changed the title [WIP] GraalVM JDK 21 [WIP] GraalVM JDK 22 Aug 24, 2024
unetablettedechocolat and others added 11 commits August 24, 2024 17:20
* add parameter : edge_info_displayed
---------

Signed-off-by: Tiphaine Mouminous <[email protected]>
* add Sld parameters in doc
---------

Signed-off-by: Tiphaine Mouminous <[email protected]>
* Upgrade to PowSyBl 2024.1.2
---------

Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
unetablettedechocolat and others added 22 commits August 24, 2024 17:20
Signed-off-by: Tiphaine Mouminous <[email protected]>
Co-authored-by: Sophie Frasnedo <[email protected]>
Signed-off-by: Hugo KULESZA <[email protected]>
Signed-off-by: Hugo KULESZA <[email protected]>
Signed-off-by: Tiphaine Mouminous <[email protected]>
Co-authored-by: Sophie Frasnedo <[email protected]>
…parameters list, is evaluated at declaration and can trigger a call before proper pypowsybl init. (#804)

Signed-off-by: Bertrand Rix <[email protected]>
Co-authored-by: HugoKulesza <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
Co-authored-by: Sophie Frasnedo <[email protected]>
Co-authored-by: HugoKulesza <[email protected]>
---------

Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Tiphaine Mouminous <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
# Conflicts:
#	cpp/powsybl-cpp/CMakeLists.txt
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
@geofjamg geofjamg changed the title [WIP] GraalVM JDK 22 [WIP] GraalVM JDK 21 Sep 10, 2024
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
# Conflicts:
#	cpp/powsybl-cpp/CMakeLists.txt
#	java/src/main/java/com/powsybl/python/network/NetworkCFunctions.java
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants