Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4992510EDF for ; Fri, 14 Nov 2014 06:36:34 +0000 (UTC) Received: (qmail 99432 invoked by uid 500); 14 Nov 2014 06:36:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 99402 invoked by uid 500); 14 Nov 2014 06:36:34 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 99391 invoked by uid 99); 14 Nov 2014 06:36:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2014 06:36:34 +0000 Date: Fri, 14 Nov 2014 06:36:34 +0000 (UTC) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6287) Don't use reflection to call Java 6 methods in FileUtil MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-6287: ----------------------------------- Attachment: DERBY6287_patch1_diff.txt 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)