You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org> on 2006/11/20 06:28:03 UTC

[jira] Created: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.

[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

        

[jira] Closed: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison closed HARMONY-2236.
--------------------------------


Verified by Ruth.


> [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
>         Assigned To: Tim Ellison
>         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.


[jira] Assigned: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-2236:
------------------------------------

    Assignee: Tim Ellison

> [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
>         Assigned To: Tim Ellison
>         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.


[jira] Commented: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.

Posted by "Ruth Cao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470106 ] 

Ruth Cao commented on HARMONY-2236:
-----------------------------------

It works fine. Thanks a lot, Tim.

> [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
>         Assigned To: Tim Ellison
>         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.


[jira] Updated: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.

Posted by "Ruth Cao (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] Resolved: (HARMONY-2236) [classlib][luni]the return value of File.lastModified() losts its precision.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-2236.
----------------------------------

    Resolution: Fixed

Thanks Ruth.

Patch applied to LUNI and portlib modules at repo revision r503372.

Please check that it was applied as you expected.


> [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
>         Assigned To: Tim Ellison
>         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.