You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2013/07/03 12:55:21 UTC

[jira] [Resolved] (DERBY-6287) Don't use reflection to call Java 6 methods in FileUtil

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

Knut Anders Hatlen resolved DERBY-6287.
---------------------------------------

          Resolution: Fixed
       Fix Version/s: 10.11.0.0
    Issue & fix info:   (was: Patch Available)
    
> Don't use reflection to call Java 6 methods in FileUtil
> -------------------------------------------------------
>
>                 Key: DERBY-6287
>                 URL: https://issues.apache.org/jira/browse/DERBY-6287
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services
>    Affects Versions: 10.11.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.11.0.0
>
>         Attachments: derby-6287-1a.diff
>
>
> The FileUtil class uses reflection to call the following java.io.File methods:
>   setWritable(boolean, boolean)
>   setReadable(boolean, boolean)
>   setExecutable(boolean, boolean)
> Reflection was used because the methods were introduced in Java 6, and the code had to run on older platforms. Now Java 6 is the lowest supported platform, so we can call the methods directly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira