details: https://code.openbravo.com/erp/devel/pi/rev/23b231580229 changeset: 34927:23b231580229 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Thu Nov 01 09:54:53 2018 +0100 summary: fixed bug 39576: cannot send email with JDK10+
It was not possible because mail libraries relies on some classes that were in hidden modules by default starting from JDK 10 and completelly reomved in 11. Fixed by replacing javax.activation-api-1.2.0 by javax.activation-1.2.0 (com.sun.activation:javax.activation). Note javax.activation-api is not purely an API but it also includes implementation for classes in javax.activation package (which was included in previous JDKs) but it depends on classes in com.sun.activation which have also been removed from JDK and not included in activation-api jar but yes in activation one. The contents of javax.activation package are identicall in both jars. Note also javax.mail-1.6.1 depends on activation-1.1 (javax.activation:activation) to manage MIME data, that version was released in 2009; newer javax.activation-1.2.0 (2017) has same API including new fixes. diffstat: legal/Licensing.txt | 2 +- lib/runtime/javax.activation-1.2.0.jar | Bin lib/runtime/javax.activation-api-1.2.0.jar | Bin 3 files changed, 1 insertions(+), 1 deletions(-) diffs (16 lines): diff -r 7ba289b96606 -r 23b231580229 legal/Licensing.txt --- a/legal/Licensing.txt Mon Oct 29 12:14:27 2018 -0400 +++ b/legal/Licensing.txt Thu Nov 01 09:54:53 2018 +0100 @@ -278,7 +278,7 @@ Under the CDDL license version 1.0 (license available at https://spdx.org/licenses/CDDL-1.0.html or in the file CDDL-1.0.txt in this folder) -# javax.activation-api-1.2.0.jar +# javax.activation-1.2.0.jar # jaxb-api-2.2.12.jar # jaxb-impl-2.2.6.jar # javax.mail-1.6.1.jar diff -r 7ba289b96606 -r 23b231580229 lib/runtime/javax.activation-1.2.0.jar Binary file lib/runtime/javax.activation-1.2.0.jar has changed diff -r 7ba289b96606 -r 23b231580229 lib/runtime/javax.activation-api-1.2.0.jar Binary file lib/runtime/javax.activation-api-1.2.0.jar has changed _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits