Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0056729Openbravo ERPA. Platformpublic2024-10-10 11:422024-10-10 11:44
shuehner 
Triage Platform Base 
normalmajorhave not tried
newopen 
5
 
 
Core
No
0056729: export.config.script produces wrong data when run with jdk21 (that causes later update.database to fail)
Running ant export.config.script with java21 produces two extra tags in the configScript.xml which did not happen when running it before (i.e. with java11 or java17).

Those two tags are:
- <first>
- <last>

and are added at the beginning of the <vector> element.
They 'duplicate' the first + last normal elements of the <vector>.

Apart from being a formal change those tags existing makes later update.database call to fail as it cannot parse those extra tags.

Using java_home pointing to jdk21
in workspace with backoffice (no extra modules needed)
ant install.source
set template module in development:
- update ad_module set isindevelopment = 'Y' where type = 'T';
ant export.config.script
git diff
# review the output for the configScript.xml in org.openbravo.v3 module
ant update.database
# It fails parsing the configScript.xml
Ensure the extra tags are not getting emitted
No tags attached.
related to defect 0054490 closed Triage Platform Base update.database fails with jdk21 
blocks feature request 0054449 new Triage Platform Base Support JDK21 (LTS) 
blocks defect 0056039 scheduled AugustoMauch ant export.config.script fails when formalChangesScript.xml contains no formal changes 
Issue History
2024-10-10 11:42shuehnerNew Issue
2024-10-10 11:42shuehnerAssigned To => Triage Platform Base
2024-10-10 11:42shuehnerModules => Core
2024-10-10 11:42shuehnerTriggers an Emergency Pack => No
2024-10-10 11:42shuehnerRelationship addedrelated to 0054490
2024-10-10 11:42shuehnerRelationship addedblocks 0054449
2024-10-10 11:44shuehnerNote Added: 0170257
2024-11-18 14:52AugustoMauchRelationship addedblocks 0056039

Notes
(0170257)
shuehner   
2024-10-10 11:44   
Problem might be side-effect of this change in Jdk21 affecting the Java Collections api: https://openjdk.org/jeps/431 [^]
It seems that commons-betwixt library is picking up extra first/last methods/members of java.util.Vector and the mis-behaving.