Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6380102

(spec) File.canExecute() doesn't throw SecurityException if read access is denied

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b86
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      Typo in Java.io.File.canExecute ()
       
            * @throws SecurityException
            * If a security manager exists and its <code>{@link
            * java.lang.SecurityManager#checkExec(java.lang.String)}</code>
            * method denies read access to the file
            * ^^^^^^^^^^^^^
            * @since 1.6
            */
           public boolean canExecute() {

      It should read as "denies execute access to the file (or) method denies creation of subprocess"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sherman Xueming Shen
              Reporter:
              rgutupalsunw Rajendra Gutupalli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: