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

REGRESSION javac -d /directory/ creates destination directories

    Details

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

      Description

      Documentation of javac option -d at
       http://download.java.net/jdk6/docs/tooldocs/windows/javac.html ,says

       *d* /directory/
           Set the destination directory for class files. The destination
           directory must already exist; javac will not create the destination
           directory ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      In Mustang javac creates directories eventhough directory structure
      does not exit. For Tiger it complains of msg "The system cannot find
      the path specified"
      documentation/implementation needs to be changed.
      -------------------
      Please see the following Result.
      Tested in WindowsXP OS with Mustang and Tiger versions.

      <Mustang>
      D:\work\try>ls
      Test.java
      D:\work\try>javac -version
       javac 1.6.0-auto

      D:\work\try>cat Test.java
      package com.sun.CLTH;
      public class Test {
       }
      D:\work\try>javac -d Test/TRY Test.java
      D:\work\try>cd Test
      D:\work\try\Test>cd TRY
      D:\work\try\Test\TRY>ls
      com
      </Mustang>
      ----------------------------------------
      <Tiger>
      C:\Documents and Settings\sqe>c:\1.5.0\win\bin\javac -d Test/Try Test.java
       Test.java:2: error while writing com.sun.CLTH.Test:
       Test\Try\com\sun\CLTH\Test.class (The system cannot find the path spec
       ified)
       class Test {
       ^
       1 error
      </Tiger>
      Test Case : nsk/regression/b4502241 fails due to this bug

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                rgutupalsunw Rajendra Gutupalli (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: