-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
-
Undefined
This follows up on LOGMGR-283. Referencing the actual class should also be wrapped for cases when the static initialization may invoke a type from another module.
An example of this would be in WildFly to create a custom handler that depends on javax.json.bind.api and org.eclipse.yasson and execute JsonBuilder.create() in a static intializater. A CNFE will be thrown because the implementation cannot be found as org.jboss.as.standalone is set as the TCCL.
The fix is quite simple just wrapping the Class.forName() with WrappedAction.execute(Supplier).
- relates to
-
LOGMGR-283 The TCCL should be set when configuring resources
- Resolved