Re: RFR: 8177418: NPE is not apparent for methods in java.util.TimeZone API docs [v8]

2023-01-27 Thread Lance Andersen
On Wed, 25 Jan 2023 20:21:11 GMT, Justin Lu wrote: >> When their input is null, the following methods in java.util.TimeZone throw >> a NullPointerException: >> >> _TimeZone.getTimeZone(String ID) >> TimeZone.setID(String ID) >> TimeZone.inDaylightTime(Date date)_ >> >> For example, >> >> >>

Re: RFR: 8177418: NPE is not apparent for methods in java.util.TimeZone API docs [v8]

2023-01-26 Thread Justin Lu
On Wed, 25 Jan 2023 20:21:11 GMT, Justin Lu wrote: >> When their input is null, the following methods in java.util.TimeZone throw >> a NullPointerException: >> >> _TimeZone.getTimeZone(String ID) >> TimeZone.setID(String ID) >> TimeZone.inDaylightTime(Date date)_ >> >> For example, >> >> >>

Re: RFR: 8177418: NPE is not apparent for methods in java.util.TimeZone API docs [v8]

2023-01-25 Thread Justin Lu
> When their input is null, the following methods in java.util.TimeZone throw a > NullPointerException: > > _TimeZone.getTimeZone(String ID) > TimeZone.setID(String ID) > TimeZone.inDaylightTime(Date date)_ > > For example, > > > String someID = null; > TimeZone tz1 = TimeZone.getTimeZone(som