Name: rmT116609 Date: 04/22/2004
A DESCRIPTION OF THE PROBLEM :
On Windows, the JRE does clever things with the command-line arguments passed
to the Java application. For example,
java some.class *.java
will do wildcard expansion on "*.java", and call the Java app's 'main' method
with a list of file names.
The problem is that this is not documented ... at least not in the obvious place.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A description of how the 'java' command on Windows preprocesses the command
line arguments before they are passed to the Java app's main method.
The following should be covered:
1) the wildcard characters supported, and what they mean
2) any restrictions on wildcarding
3) how quotes are handled; e.g. handling mismatched quotes, quote stripping,
inhibition of wildcarding within quotes.
4) any other mechanisms that modifiy the "java" command's handling of args
in the Windows context.
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html
(Incident Review ID: 233540)
======================================================================
A DESCRIPTION OF THE PROBLEM :
On Windows, the JRE does clever things with the command-line arguments passed
to the Java application. For example,
java some.class *.java
will do wildcard expansion on "*.java", and call the Java app's 'main' method
with a list of file names.
The problem is that this is not documented ... at least not in the obvious place.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A description of how the 'java' command on Windows preprocesses the command
line arguments before they are passed to the Java app's main method.
The following should be covered:
1) the wildcard characters supported, and what they mean
2) any restrictions on wildcarding
3) how quotes are handled; e.g. handling mismatched quotes, quote stripping,
inhibition of wildcarding within quotes.
4) any other mechanisms that modifiy the "java" command's handling of args
in the Windows context.
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html
(Incident Review ID: 233540)
======================================================================
- relates to
-
JDK-4342394 Compilation of Multiple java files filed
-
- Resolved
-
-
JDK-6328875 Multiple command line wildcard expansion confuses Windows users
-
- Closed
-
-
JDK-4672990 Command line argument outcome is strange when passed asterisk(*)
-
- Closed
-
-
JDK-6268383 Class-path wildcards, jplan feature 082
-
- Closed
-