Skip to content

Commit bcd1018

Browse files
committedDec 5, 2024
8344540: Remove superseded wildcard description from java manpage
Reviewed-by: dholmes, jpai
1 parent f3807d6 commit bcd1018

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎src/java.base/share/man/java.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ contain whitespace characters. All content between the open quote and the
279279
first matching close quote are preserved by simply removing the pair of quotes.
280280
In case a matching quote is not found, the launcher will abort with an error
281281
message. `@`-files are supported as they are specified in the command line.
282-
However, as in `@`-files, use of a wildcard is not supported. In order to
282+
Any wildcard literal `*` in the `JDK_JAVA_OPTIONS` environment variable
283+
content isn't expanded and is passed as-is to the starting VM. In order to
283284
mitigate potential misuse of `JDK_JAVA_OPTIONS` behavior, options that specify
284285
the main class (such as `-jar`) or cause the `java` launcher to exit without
285286
executing the main class (such as `-h`) are disallowed in the environment
@@ -3073,9 +3074,9 @@ The following items describe the syntax of `java` argument files:
30733074
- The argument file size must not exceed MAXINT (2,147,483,647) bytes.
30743075

30753076
- The launcher doesn't expand wildcards that are present within an argument
3076-
file. That means, an asterisk `*` is passed on as-is to the starting VM.
3077-
For example `*.java` stays `*.java` and is not expanded to `Foo.java`,
3078-
`Bar.java`, etc. like on some command line shell.
3077+
file. That means an asterisk (`*`) is passed on as-is to the starting VM.
3078+
For example `*.java` stays `*.java` and is not expanded to
3079+
`Foo.java Bar.java ...`, as would happen with some command line shells.
30793080

30803081
- Use white space or new line characters to separate arguments included in
30813082
the file.
@@ -3118,8 +3119,6 @@ The following items describe the syntax of `java` argument files:
31183119
- An open quote stops at end-of-line unless `\` is the last character, which
31193120
then joins the next line by removing all leading white space characters.
31203121

3121-
- Wildcards (\*) aren't allowed in these lists (such as specifying `*.java`).
3122-
31233122
- Use of the at sign (`@`) to recursively interpret files isn't supported.
31243123

31253124
### Example of Open or Partial Quotes in an Argument File

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Dec 5, 2024

@openjdk-notifier[bot]
Please sign in to comment.