harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.
Date Tue, 21 Nov 2006 12:10:03 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2236?page=comments#action_12451612 ] 
            
Paulex Yang commented on HARMONY-2236:
--------------------------------------

Is this duplicated with HARMONY-2146?

> [classlib][luni]the return value of File.lastModified() losts its precision.
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-2236
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2236
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Jimmy, Jing Lv
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message