Is calling Java's Calendar.getTime() necessary to update the object?

后端 未结 5 1309
北海茫月
北海茫月 2020-12-17 04:13

I came across a comment in some java code that states that getTime() needs to be called to update the Calendar object. Is this true? I cannot find

5条回答
  •  旧时难觅i
    2020-12-17 04:45

    You could be hitting Bug ID 4851640

    Calling get(...) / getTime() on a Calendar instance makes isSet(...) useless!

提交回复
热议问题