Hi!
There seems to be a bug in 2.0M4 preventing the use of @Destroy on
private and protected methods. If @Destroy is used to annotate a method
with package visibility, no exception is thrown but the method is never
called when the component is to be taken out of service.
According to section 10.8 in Service Component Architecture SCA-J Common
Annotations and APIs Specification Version 1.1, such a method may have
any access modifier.
To correct this, remove lines 62-64 in the class
org.apache.tuscany.sca.implementation.java.introspect.impl.DestroyProcessor
in the module implementation-java. Additional modifications required?
Best wishes!
Ivan