<p dir="ltr">To add one more voice, not particularly with Java, but I have made the same issue with js Number.MIN_VALUE a bunch of times (assuming it should work as java`s) Integer.MIN_VALUE.</p>
<p dir="ltr">And also, would like to note that half-measures may not work as expected or to expected extent, for example you can very often see misused Number.MAX_VALUE, where in fact Number.MAX_SAFE_INTEGER should be used in previously mentioned js. The thing that will be most intuitive for dev (which is MIN_VALUE will most likely sneak into codebase from time to time at least, unless there some warning for it's use. Since java doesn't have concept of "note", which is kind of like weaker warning, deprecation seems really harsh but to some extent reasonable step, SPECIFICALLY because it will break -Weeror builds, so people will return to places where they use Double.MIN_VALUE and I am sure that they will find out that at least half of the times this constant has been missused</p>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 4, 2024, 09:56 Stephen Colebourne <<a href="mailto:scolebourne@joda.org">scolebourne@joda.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 3 Dec 2024 at 18:37, Louis Wasserman <<a href="mailto:lowasser@google.com" target="_blank" rel="noreferrer">lowasser@google.com</a>> wrote:<br>
> To add some more data, from taking a sample, at least a third of usages in Google's codebase were using it incorrectly in the way we've described.<br>
<br>
I just checked, and only a few days ago I made this error (in a test<br>
case, where it is less noticeable).<br>
<br>
I do think deprecation of Double.MIN_VALUE is long overdue (whether<br>
there are new constants or not is a separate issue).<br>
<br>
Stephen<br>
</blockquote></div>