Working on OSGi R5 TCK I noticed that an Exception thrown by a registered ClassFileTransformer does not end up as the cause of the final CNFE.
The TCK expects a ClassFormatError with the RuntimeException thrown by the WeavingHook as cause. I believe the expected CFE is an invalid assertion (i.e. not speced) but the cause should nevertheless not get lost.