[ 
https://issues.apache.org/jira/browse/FELIX-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619525#action_12619525
 ] 

Costin Leau commented on FELIX-582:
-----------------------------------

Interesting outcome. My interest was in the bundle.getLastModified() mainly but 
since any resource inside the bundle can be resolved as an url, this can be 
applied to all existing resources as Karl mentioned.
With jars there is always the question on whether the entry returns the 
archiving time or the raw (unpacked) modification time. For starters returning 
the bundle last modified time might be enough but in time, for correctness, the 
JarEntry.getTime() should be probably used.

> felix URLs do not return a proper value for lastModified()
> ----------------------------------------------------------
>
>                 Key: FELIX-582
>                 URL: https://issues.apache.org/jira/browse/FELIX-582
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.4
>            Reporter: Costin Leau
>             Fix For: felix-1.2.0
>
>         Attachments: FELIX-582.patch
>
>
> URLs loaded through Felix, pointing to resources inside OSGi space rely on 
> the default lastModified() implementation which always returns 0. Since the 
> platform knows about the originating bundle it can use the bundle 
> lastmodified instead of 0.
> Other URL/URLConnection methods can be potentially implemented instead of 
> relying on the defaults (such as file type for example).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to