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. derby-6287-1a.diff
          7 kB
          Knut Anders Hatlen
        2. DERBY6287_patch1_diff.txt
          5 kB
          Mamta A. Satoor

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: