[
https://issues.apache.org/jira/browse/DERBY-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211920#comment-14211920
]
Mamta A. Satoor edited comment on DERBY-6287 at 11/14/14 6:36 AM:
------------------------------------------------------------------
Here is the patch(DERBY6287_patch1_diff.txt) for backport to 10.10. I had to
hand make the changes for backporting. Running derbyall right now.
was (Author: mamtas):
Here is the patch for backport to 10.10. I had to hand make the changes for
backporting. Running derbyall right now.
> 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)