Rename resource files so JakartaMail and JavaMail can co-exist
Opened this issue · 0 comments
jmehrens commented
Reported by https://github.com/jodastephen in jakartaee/mail-api#527 (comment)
That the content handlers from the old com.sun JakartaMail get mixed with the handlers from org.eclipse in the new JakartaMail which results in a ClassCastException.
We should consider renaming resources in META-INF:
- javamail.charset.map -> jakarta.charset.map
- javamail.default.address.map -> jakarta.charset.map
- mailcap -> jakarta.mailcap
- TODO update other resources that we probe for to use jakarta namespace.
This is something that should be considered for 2.1.X release.