Deprecation of LogRecord.getMillis in JDK9

Jason Mehrens jason_mehrens at hotmail.com
Mon Nov 30 17:57:16 UTC 2015


Sure.  I'm just trying to pick a path forward so that in X years when someone does code review (like my future self) can avoid, "What was this guy thinking calling such a SUPERSEDED, DANGEROUS, and CONDEMNED method?" when confronted with using getMillis.  I would assume JEP 277 would mark getMillis as SUPERSEDED only but, it still seems questionable that I would suppress the warning.  Which leads me toward removing the deprecation.

Thanks,

Jason

________________________________________
From: Daniel Fuchs <daniel.fuchs at oracle.com>
Sent: Monday, November 30, 2015 11:32 AM
To: Jason Mehrens; Core-Libs-Dev
Subject: Re: Deprecation of LogRecord.getMillis in JDK9

Hi Jason,

To complete my earlier reply:

On 30/11/15 18:25, Daniel Fuchs wrote:
> If it can't be undeprecated what is the proper way to target support as
> low as JDK7 but might end up executing on JDK9?

Well - a lib using LogRecord.getMillis() could
use @SuppressWarnings("deprecation') when calling
LogRecord.getMillis() - but was that your question?

best regards,

-- daniel



More information about the core-libs-dev mailing list