harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruth Cao (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.
Date Thu, 01 Feb 2007 07:05:05 GMT

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

Ruth Cao updated HARMONY-2236:
------------------------------

    Attachment: Harmony-2236.diff

May somebody try this patch? Thanks.

> [classlib][luni]the return value of File.lastModified() losts its precision.
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-2236
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2236
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Attachments: Harmony-2236.diff
>
>
> Hi,
>     File.lastModified() always returns a value ends with "000", it losts its precision.

>     For an example, in pachage "test", test class "Test":
>     public void test_lastModified() throws Exception {        
>         // find a existed file
>         File file =new File(test.class.getClassLoader().getResource("test/Test.java").getFile());

>         System.out.println(file.lastModified());
>     }
>     RI output a value like "1163999904212", but Harmony always returns a value ends with
"000" like "1163999904000", it omit the last three bits and lost its precision.

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