Closing issue - this is not a problem on Weld side but a problem with jboss classfilewriter. The PR which should resolve it was already merged, so once jboss cfw gets released and updated in WFLY, it should work.