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

(process) wrong argument in example for ProcessBuilder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • core-libs
    • b40
    • x86
    • windows_xp

      A DESCRIPTION OF THE PROBLEM :
      The example has:
      pb.directory("myDir");

      but the argument should be a File, not a String.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      pb.directory(new File("myDir"));
      ACTUAL -
      pb.directory("myDir");

      URL OF FAULTY DOCUMENTATION :
      file:///C:/Program%20Files/Java/jdk1.5.0_03/docs/api/java/lang/ProcessBuilder.html
      ###@###.### 2005-05-25 11:58:53 GMT

            martin Martin Buchholz
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: