-Werror in make/java/sun_nio/Makefile

Andrew John Hughes gnu_andrew at member.fsf.org
Fri Jan 29 18:19:55 PST 2010


On 28 January 2010 23:15, Alan Bateman <Alan.Bateman at sun.com> wrote:
> Andrew John Hughes wrote:
>>
>> :
>>
>> It seems that ByteToCharConverter was marked as deprecated with the
>> intention of removing it in JDK6:
>>
>>  * @deprecated Replaced by {@link java.nio.charset}.  THIS API WILL BE
>>  * REMOVED IN J2SE 1.6.
>>
>> This still being present in OpenJDK7 suggests that never happened.
>>
>
> Unfortunately we haven't been able to remove the legacy converters as
> planned. JDBC drivers are the main problem. Sherman and Martin may want to
> chime in with more history on this.
>
>> I'd suggest we either drop the local -Werror or add -deprecation after
>> serial to make the build with maximum warnings complete.  Long term,
>> we can look at getting rid of that code if appropriate, though I doubt
>> we'll ever be able to do a build with the deprecation warning and
>> -Werror on simply because of legacy code.
>>
>
> I'd prefer not drop -Werror as that would let warnings creep in. Add
> -deprecation is probably better.
>

Ok, that's what I've done in this webrev:

http://cr.openjdk.java.net/~andrew/warnings/webrev.01/

It also fixes a number of unchecked and redundant cast warnings that
occur when building with JAVAC_MAX_WARNINGS=true.  With this patch,
sun_io now compiles when JAVAC_MAX_WARNINGS=true.

Does this look ok?

> -Alan.
>



-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8


More information about the nio-dev mailing list