jakartaee / jakartaee/mail-api
Remove throws MessagingException on jakarta.mail.internet.MimeMessage addHeader/removeHeader functions
Open
Component: internet
enhancement
- Dominant language
- Java
- Stars
- 285
- Forks
- 109
- Avg merge
- 15h 19m
- Merged PRs (30d)
- 1
Description
**Is your feature request related to a problem? Please describe.**
MimeMessage class has addHeader and removeHeader functions that throw MessagingException. But the underlying function does not throw these exceptions. This causes the callers to unnecessarily catch and discard the MessagingException or throw it back to callers.
**Describe the solution you'd like**
Java allows sub classes to remove checked exceptions on overridden methods. Can we remove MessagingException on addHeader and removeHeader?
**Describe alternatives you've considered**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.