Maximum number of warnings allowed?
David Holmes
david.holmes at oracle.com
Wed Sep 13 21:49:43 UTC 2017
On 13/09/2017 11:41 PM, Magnus Ihse Bursie wrote:
> On 2017-09-13 12:30, David Holmes wrote:
>> On 13/09/2017 7:33 PM, David Holmes wrote:
>>> I'm building with --disable-warnings-as-errors but the build still
>>> fails:
>>>
>>> 1 error
>>> 100 warnings
>>> CompileJavaModules.gmk:623: recipe for target
>>> '/export/users/dh198349/valhalla/valhalla-nestmates/build/linux-x64-open-debug/jdk/modules/java.datatransfer/_the.java.datatransfer_batch'
>>> failed
>>> make[3]: ***
>>> [/export/users/dh198349/valhalla/valhalla-nestmates/build/linux-x64-open-debug/jdk/modules/java.datatransfer/_the.java.datatransfer_batch]
>>> Error 1
>>> make/Main.gmk:198: recipe for target 'java.datatransfer-java' failed
>>> make[2]: *** [java.datatransfer-java] Error 1
>>>
>>> Is there a maximum number of warnings allowed before it's considered
>>> an error? Could this be coming from (s)javac? (The warnings are Java
>>> related).
>>
>> I was told about -Xmaxwarns for javac and I bumped it to 1000 but it
>> didn't help much:
>>
>> 1 error
>> 138 warnings
>> ...
>>
>> I finally spotted this in the log:
>>
>> error: warnings found and -Werror specified
>>
>> From the make-support/failure-log I see -Werror in the javac command
>> line. Obviously it isn't adhering to --disable-warnings-as-errors! :(
> We've stumbled across this before. It's obviously not what one would
> expect. Could you open a bug for it?
https://bugs.openjdk.java.net/browse/JDK-8187520
Cheers,
David
> /Magnus
>
More information about the build-dev
mailing list