karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-4943) bundle:watch doesn't take timezone into account when comparing modification date
Date Sat, 24 Mar 2018 06:46:00 GMT

     [ https://issues.apache.org/jira/browse/KARAF-4943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré resolved KARAF-4943.
-----------------------------------------
    Resolution: Not A Problem

> bundle:watch doesn't take timezone into account when comparing modification date
> --------------------------------------------------------------------------------
>
>                 Key: KARAF-4943
>                 URL: https://issues.apache.org/jira/browse/KARAF-4943
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 4.0.8
>         Environment: OS X 10.12.2, Java 8
>            Reporter: Erwin Hogeweg
>            Priority: Major
>
> I noticed that bundle:watch kept restarting the same bundles over-and-over again. After
some digging I believe this behavior is caused by BundleWatchImpl:163
>         if (location != null && location.exists() && location.lastModified()
> bundle.getLastModified()) {
> The location.lastModified() returns the timestamp in GMT, while the bundle.lastModified()
returns the timestamp in local time.
> Verified with Felix and Equinox.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message