Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6287

Don't use reflection to call Java 6 methods in FileUtil

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

        1. DERBY6287_patch1_diff.txt
          5 kB
          Mamta A. Satoor
        2. derby-6287-1a.diff
          7 kB
          Knut Anders Hatlen

          Activity

            People

            • Assignee:
              knutanders Knut Anders Hatlen
              Reporter:
              knutanders Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: