PersistentAttributesEnhancer.java:addCompositeOwnerInterface has the following code:
MethodWriter.write can throw CannotCompileException. In this class, when MethodWriter.write, the other method rethrow EnhancementException:
It is confusing. If calling code catches EnhancementException to handle errors, it will miss the errors occuring in addCompositeOwnerInterface. Can this problem be fixed? |