-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b96
-
generic
-
generic
-
Verified
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
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
- relates to
-
JDK-8143268 Langtools tools should create output directories as needed.
-
- Closed
-