On 02 Oct 2015, at 11:25, Antoine Sabot-Durand
<antoine(a)sabot-durand.net> wrote:
There's a solution at implementation level. Since extension developed for 1.2
contains unknown classes in 1.0, the impl could catch the "class not found"
exception on an extension send a warning to user and don't use the extension. In other
way instead of letting the app crash, manage the crash by ignoring the extension.
Indeed. Before 2.0 (considering that feature is available), relying on a solution at
implementation level would be the only solution. But that would require back-porting that
solution to older versions of the implementations, since that is the original requirement.
In my specific use case, I can have a CDI 1.0 and CDI 2.0 extensions so spec level /
end-user solution would work. It’s preferable if possible that the compatibility knowledge
be captured functionally rather than relying on an exception mechanism.