Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040840Openbravo ERPA. Platformpublic2019-05-10 14:592021-06-16 13:03
caristu 
platform 
normalminoralways
closedfixed 
5
 
PR21Q3 
Core
No
0040840: Illegal Access warning in weld-core-impl-3.1.1.Final.jar using JDK12+
On tomcat start an illegal access warning is shown using JDK12+:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.weld.util.bytecode.ClassFileUtils$1 (file:..WEB-INF/lib/weld-core-impl-3.1.1.Final.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of org.jboss.weld.util.bytecode.ClassFileUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

This is an issue in WELD reported here: https://issues.jboss.org/browse/WELD-2581 [^]

Note that the warning is not shown if Tomcat is started with the following setting: --add-opens=java.base/java.lang=ALL-UNNAMED
-
No tags attached.
related to design defect 0039031 new Triage Platform Base Tracking issue: Remove illegal access warnings shown since java9 by updating affected jar libraries 
related to defect 0040827 closed caristu JDK 12: cannot start application due to Weld error 
related to feature request 0040826 closed platform support JDK 12 and JDK 13 
related to defect 0045594PR21Q3 closed alostale Junit tests based on BaseWeldTest fail since jdk16 build ea28 (as weld tries to access no longer accessible jdk internals) 
blocks feature request 0045903 new Triage Platform Base Support JDK17 (LTS) 
Issue History
2019-05-10 14:59caristuNew Issue
2019-05-10 14:59caristuAssigned To => platform
2019-05-10 14:59caristuModules => Core
2019-05-10 14:59caristuTriggers an Emergency Pack => No
2019-05-10 14:59caristuRelationship addedrelated to 0039031
2019-05-10 15:00caristuRelationship addedrelated to 0040827
2019-05-10 15:00caristuRelationship addedrelated to 0040826
2019-05-17 09:07alostaleStatusnew => acknowledged
2020-12-16 16:24shuehnerRelationship addedrelated to 0045594
2021-06-16 13:00alostaleStatusacknowledged => scheduled
2021-06-16 13:01alostaleRelationship addedblocks 0045903
2021-06-16 13:02alostaleNote Added: 0129563
2021-06-16 13:02alostaleStatusscheduled => resolved
2021-06-16 13:02alostaleFixed in Version => PR21Q3
2021-06-16 13:02alostaleFixed in SCM revision => https://gitlab.com/openbravo/product/openbravo/-/commit/c6a8cad3820e6369073476f655ab07f0ab36ee1f [^]
2021-06-16 13:02alostaleResolutionopen => fixed
2021-06-16 13:03alostaleStatusresolved => closed
2021-06-16 13:03alostaleNote Edited: 0129563bug_revision_view_page.php?bugnote_id=0129563#r22737

Notes
(0129563)
alostale   
2021-06-16 13:02   
(edited on: 2021-06-16 13:03)
Fixed by weld update in 0045594