[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Classpathx-javamail] Patch Review:source/javax/mail/FetchProfile.ja
From: |
Conrad T. Pino |
Subject: |
RE: [Classpathx-javamail] Patch Review:source/javax/mail/FetchProfile.java |
Date: |
Thu, 29 Nov 2007 11:49:16 -0800 |
> > 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?