db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6287) Don't use reflection to call Java 6 methods in FileUtil
Date Fri, 14 Nov 2014 07:07:33 GMT

    [ https://issues.apache.org/jira/browse/DERBY-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211940#comment-14211940
] 

Knut Anders Hatlen commented on DERBY-6287:
-------------------------------------------

Please also check that it works on CDC and Java 5 before you backport this fix. My guess is
that we still need reflection on 10.10 in order to run on those platforms.

> 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.1.1
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.11.1.1
>
>         Attachments: DERBY6287_patch1_diff.txt, 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message