Review Request: 7193406 - Clean-up JDK Build Warnings in java.util,

Andrew Hughes ahughes at
Fri Aug 24 00:12:43 UTC 2012

----- Original Message -----
> Please review the fix of CR 7193406 at


> And it enables fatal warning flag in the following make file.
>     make/java/jar/Makefile

Please don't do this, at least not unconditionally.

At the very least, these should not be forced on if the user
has explicitly built with them set to false.  If I set
JAVAC_WARNINGS_FATAL=false, I don't expect part of the build
to ignore this and use -Werror, possibly then causing build

This is especially bad with both on as a new warning may be
introduced into javac which then breaks everyone's build.

I already have a patch I intend to upstream which fixes the
other cases of this I found.  I'd prefer we didn't have another.

> In file, I make one change to its method
> signature,
>     public Enumeration elements()  ==> public Enumeration<Permission>
>     elements()
> I am not sure whether it will cause an issue of backward
> compatibility.
> Please advise. Thanks!

It's in a package-private class so I doubt it.

Even if it wasn't, a new major release is the perfect time to fix these issues.

> - Dan

Andrew :)

Free Java Software Engineer
Red Hat, Inc. (

PGP Key: 248BDC07 (
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07

More information about the core-libs-dev mailing list