harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy, Jing Lv (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.
Date Mon, 20 Nov 2006 05:28:03 GMT
[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