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

XMLWordPrintable

    • b86
    • generic
    • generic
    • Verified

      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"

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: