Hi all,

Was having a look at the pull requests and issues for Configuration, and
found one from Dependabot where it's updating mailapi/javamail from 1.6 to
2.0.1 (2.0 was released Oct 2020 [1]).

The 2.0 release includes a change in namespace, from javax.mail.* to
jakarta.mail.*.

I created CONFIGURATION-813 and also included a quick fix and pushed to the
Dependabot pull request. I am working more with Python and JavaScript these
days, and not entirely sure what is the path for the migration to Jakarta
namespace in Commons components.

So I tried a fix that I believe will work with either javax.mail or
jakarta.mail (catching ClassCastException... defaulting to the new
jakarta.mail, etc).

Feel free to provide any feedback here, on JIRA, or directly in the GitHub
UI as a review.

Thanks!
Bruno

https://github.com/apache/commons-configuration/pull/107

[1] https://github.com/eclipse-ee4j/mail/releases/tag/2.0.0

Reply via email to