Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0055723Openbravo ERPA. Platformpublic2024-06-10 11:382024-10-21 08:59
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
acknowledgedopen 
5
 
 
Core
No
0055723: Current Graal version does not work with Java 22+


See https://openbravo.atlassian.net/browse/RM-9765. [^]

Steps to be done:
- Download Graal for Java 22: https://www.graalvm.org/downloads/ [^]
- Replace the current Graal version with the new one here: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.jsexecutor/-/blob/master/lib/runtime/graal-sdk-22.3.1.jar?ref_type=heads [^]
- Test it in https://builds.openbravo.com/view/modules/job/mod-merged-future-stack/, [^] make sure to remove these lines from the "JUNIT_DISABLED_TESTS" parameter:
    # ignore tests requiring GraalJS on jdk22+ (not working):
    https://openbravo.atlassian.net/browse/RM-9765 [^]
        org.openbravo.retail.discounts.test
        org.openbravo.discounts.combo.test
        org.openbravo.discounts.propertycondition
        org.openbravo.discounts.scaledprice.test
        org.openbravo.taxes.test
- Test it that jar using the minimum JDK version we support, to check backwards-compatibility
-
No tags attached.
Issue History
2024-06-10 11:38AugustoMauchNew Issue
2024-06-10 11:38AugustoMauchAssigned To => AugustoMauch
2024-06-10 11:38AugustoMauchModules => Core
2024-06-10 11:38AugustoMauchTriggers an Emergency Pack => No
2024-06-21 14:06AugustoMauchStatusnew => acknowledged
2024-08-29 11:29AugustoMauchSummaryReview Graal errors when testing Java 22 => Current Graal version does not work with Java 22+
2024-08-29 11:29AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=28386#r28386
2024-08-29 11:49AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=28387#r28387
2024-10-21 08:56AugustoMauchTypedefect => design defect
2024-10-21 08:59AugustoMauchNote Added: 0170631
2024-10-21 08:59AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=28624#r28624

Notes
(0170631)
AugustoMauch   
2024-10-21 08:59   
There is no graal version that supports both Java 17 and Java 21+. Whenever the minimum java version is increased to 21, we could use the new graal version, but not in the meantime.

Still needs to be decided how to deal with this, maybe we will need to support two branches of the module, one to be used in versions <21, the other for 21+.