Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2595

java.io.File.lastModified() has a resolution of second in Linux FileSystems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.1.0
    • None
    • None

      Which can lead to errors
      See UserPopulationDAO#_readPopulations and GroupDirectoryDAO#_read

      instead of doing things such as :

      __USER_POPULATIONS_FILE.lastModified() > _lastUpdate

      do :

      long cfgFileLastModified = (__USER_POPULATIONS_FILE.lastModified() / 1000) * 1000; __USER_POPULATIONS_FILE.lastModified() >= _lastUpdate

      and also store _lastUpdate with a truncation on the milliseconds

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: