jimblackler/jsonschemafriend

Migrate AddressException from javax.mail to jakarta in FormatChecker.java

Opened this issue · 2 comments

As you may know the package javax.mail has not been updated for a while (Maven Central shows last release in 2018), more and more projects are migrating over to Jakarta.
In FormatChecker an AddressException from javax.mail is being used, which is causing problems if software already has moved on to use Jakarta. The following exception is being thrown:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
It would be appreciated, if you could migrate onto newer library.

As far as I can see, FormatChecker has undergone some work and no longer seems to be using said exception. In fact, is it possible the entire com.sun.mail:javax.mail artifact is no longer used, ie. can this line:

implementation 'com.sun.mail:javax.mail:1.6.2'

simply be removed?

Yep. Thanks all.

f7d59a0