felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Costin Leau (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-582) felix URLs do not return a proper value for lastModified()
Date Sat, 31 May 2008 09:51:45 GMT

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

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

The code below, always returns 0:

URLConnection con = getURL().openConnection();
con.setUseCaches(false);
return con.getLastModified();


> 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
>
> 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.


Mime
View raw message