Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0054223Openbravo ERPA. Platformpublic2023-12-27 12:542023-12-27 13:03
ablasco 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
Core
No
0054223: Enable Dynamic Loading Agents in compiler due to changes JDK Enhancement Proposal in Java 21
In Java 21, a new JDK Enhancement Proposal adds a Warning message during compilation in order to active a flag to enable Dynamic Loading Agents.

https://openjdk.org/jeps/451 [^]

Compilation Warning:

WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release

In this case, we are using agents in byte-buddy-agent as a dependency on Mockito Tests.
If we run any of the mockito tests in Java 21, the warning will appear.

ant run.test -Dtest=org.openbravo.synchronization.event.SynchronizationEventTest
No tags attached.
Issue History
2023-12-27 12:54ablascoNew Issue
2023-12-27 12:54ablascoAssigned To => Triage Platform Base
2023-12-27 12:54ablascoModules => Core
2023-12-27 12:54ablascoTriggers an Emergency Pack => No
2023-12-27 13:03hgbotNote Added: 0158647

Notes
(0158647)
hgbot   
2023-12-27 13:03   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1087 [^]