RFR: 8220632: Suggest recompiling with a larger value of -Xmaxerrs/-Xmaxwarns if diagnostics were suppressed
Jonathan Gibbons
jonathan.gibbons at oracle.com
Fri Mar 15 17:31:21 UTC 2019
On 3/15/19 10:28 AM, Liam Miller-Cushon wrote:
> On Fri, Mar 15, 2019 at 10:19 AM Jonathan Gibbons
> <jonathan.gibbons at oracle.com <mailto:jonathan.gibbons at oracle.com>> wrote:
>
> For discussion ...
>
> Rather than giving a specific number, how about something more like:
>
> "consider using the -Xmaxwarns option to increase the number of
> messages
> displayed"
>
>
> Choosing a specific number modulo 100 was somewhat arbitrary, but I
> was trying to anticipate the question of what the current value of
> -Xmaxwarns is, especially if the user isn't already setting it and is
> relying on the default.
>
> Another way to approach that would be for the note to also mention the
> total number of diagnostics, so -Xmaxwarns could be raised past that
> number if the user wanted to see all diagnostics.
You could report the current limit and the total number.
-- Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190315/b481e51f/attachment.html>
More information about the compiler-dev
mailing list