Security fixes are back; other fixes can go in. Time for build 18?
Andrew John Hughes
gnu_andrew at member.fsf.org
Tue Dec 8 12:07:36 PST 2009
2009/12/8 Jonathan Gibbons <Jonathan.Gibbons at sun.com>:
> Joseph D. Darcy wrote:
>>
>> Andrew John Hughes wrote:
>>>
>>> 2009/12/8 Jonathan Gibbons <Jonathan.Gibbons at sun.com>:
>>>
>>>>
>>>> Andrew John Hughes wrote:
>>>>
>>>>>
>>>>> Finally, during build, I just spotted another issue. The langtools
>>>>> build wrongly passes -Werror to javac and this has been removed in the
>>>>> OpenJDK7 version. It only shows up if you build OpenJDK6 with
>>>>> OpenJDK7, so it's minor but probably worth fixing. I doubt that is
>>>>> the only building-with-7 issue though.
>>>>>
>>>>>
>>>>
>>>> langtools is supposed to be warning free and thus is supposed to use
>>>> -Werror.
>>>>
>>>> -- Jon
>>>>
>>>>
>>>
>>> Not according to this changeset of yours:
>>>
>>> http://hg.openjdk.java.net/jdk7/jdk7/langtools/rev/12c9e612e9e31
>>>
>>
>> The removal of Werror from langtools in JDK 7 was a transitory change; it
>> came back as part of Jon's subsequent changset:
>>
>> http://hg.openjdk.java.net/jdk7/jdk7/langtools/rev/b4b1f7732289
>>
>> -Joe
>
> When the langtools repository was originally created, there were different
> coding standards for different tools, with the bar being higher for some
> than for others. That is why at that time we could not use -Werror for all
> tools. Once we finally made the entire repository warning-free, it made
> sense to impose -Werror as a check that we maintained that level.
>
> -- Jon
>
I'm glad the code is Werror free. Those of us working on IcedTea are
certainly aware that the rest of the JDK code certainly isn't; when we
bootstrap with ecj some 14k warnings are thrown out from the OpenJDK
code (ecj is much more noisy by default) leading to -nowarn being
added.
The issue here is that the -Werror bit is in OpenJDK6 but the actual
fix is not. It's strange because -unchecked seems to be being passed,
yet unchecked warnings are being thrown.
--
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 jdk6-dev
mailing list