It seems like a workaround is to revert the WildFly https://github.com/wildfly/wildfly/commit/bad998c5b6c61c6aad6f1560e5c9f0ec83252aa5 change that enables entiy bytecode enhancement by default.