Dalibor Topic from Oracle OpenJDK team told me that this issue is probably the same as the one at https://issues.jboss.org/browse/WFLY-11406 and https://github.com/jbossas/jboss-classfilewriter/issues/18