RE: Patch Review:source/javax/mail/FetchProfile.java
"Conrad T. Pino" <[email protected]> Thu, 29 Nov 2007 11:49:16 -0800
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
> > Java 5 has @SuppressWarnings annotation but only if source level > > is so set requiring make system to detect compiler version & act > > accordingly. Probably fails with older compilers. > > > > The following patch adds a protected method to return the field > > and is noted as a non JavaMail API function. > > > > Another alternative is override "toString()" to "return name;" > > but that's not in JavaMail API either. > > No, we must preserve API compatibility with the published JavaMail API, > we can't add new public/protected methods. I accept your proposition; it's consequences preclude proposed "getName" method and "toString()" override as neither are in the API specification. What's known about Java 1.4 compiler and @SuppressWarnings annotation?