-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK 9+ compatibility: DataHandler missing #107
Comments
Adding a dependency seems to also be the correct fix per JEP 320, though The JavaMail API still uses javax.activation.DataHandler legitimately. |
So I shouldn't have issues with postal an JDK > 8 if I add that dependency? Would a solution for postal be to include that library or to include a mention in the README? |
We've been using the dependency and postal in production since May, and have had no issues. I'm not sure if adding the dependency in postal itself causes issues in JDK 8 but it's what I would do. |
Even after adding
|
In JDK9+, DataHandler appears to be dropped. Therefore, an error is thrown:
To add a workaround, one can add this dependency to your project:
[com.sun.activation/javax.activation "1.2.0"]
Tested with AdoptOpenJDK 13
But this is just a workaround. Please update the corresponding lines in the code base.
Thanks!
The text was updated successfully, but these errors were encountered: