Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7462

groovy.json.internal.Dates instantiates objects without explicitly specifying the miliseconds parameter

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.3
    • 2.4.4
    • JSON
    • None

    Description

      groovy.json.internal.Dates instantiates objects without explicitly specifying the miliseconds parameter. By omission, it ends up using the value provided by Calendar.getInstance(), which is copied over from System.currentTimeMillis(). This is a problem when comparing dates.

      Source: https://mail-archives.apache.org/mod_mbox/incubator-groovy-dev/201506.mbox/%3CCAJ_y_NCp4EKX11DCd%3D%3D7pkoS-16Y2JBnB6xpy%2BDQenYTaOV9Ew%40mail.gmail.com%3E

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pascalschumacher Pascal Schumacher
            pascalschumacher Pascal Schumacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment