Skip to content

Commit b2e86ae

Browse files
author
David Holmes
committed
8304478: Initial nroff manpage generation for JDK 22
Reviewed-by: alanb, sspitsyn, mchung, lancea
1 parent 7b45c8f commit b2e86ae

File tree

28 files changed

+72
-105
lines changed

28 files changed

+72
-105
lines changed

src/java.base/share/man/java.1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
. ftr VB CB
3737
. ftr VBI CBI
3838
.\}
39-
.TH "JAVA" "1" "2023" "JDK 21-ea" "JDK Commands"
39+
.TH "JAVA" "1" "2024" "JDK 22-ea" "JDK Commands"
4040
.hy
4141
.SH NAME
4242
.PP
@@ -187,7 +187,7 @@ with new values added and old values removed.
187187
You\[aq]ll get an error message if you use a value of \f[I]N\f[R] that
188188
is no longer supported.
189189
The supported values of \f[I]N\f[R] are the current Java SE release
190-
(\f[V]21\f[R]) and a limited number of previous releases, detailed in
190+
(\f[V]22\f[R]) and a limited number of previous releases, detailed in
191191
the command-line help for \f[V]javac\f[R], under the \f[V]--source\f[R]
192192
and \f[V]--release\f[R] options.
193193
.RE
@@ -3813,7 +3813,7 @@ This option was deprecated in JDK 16 by \f[B]JEP 396\f[R]
38133813
403\f[R] [https://openjdk.org/jeps/403].
38143814
.SH REMOVED JAVA OPTIONS
38153815
.PP
3816-
These \f[V]java\f[R] options have been removed in JDK 21 and using them
3816+
These \f[V]java\f[R] options have been removed in JDK 22 and using them
38173817
results in an error of:
38183818
.RS
38193819
.PP

src/java.base/share/man/keytool.1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
. ftr VB CB
3737
. ftr VBI CBI
3838
.\}
39-
.TH "KEYTOOL" "1" "2023" "JDK 21-ea" "JDK Commands"
39+
.TH "KEYTOOL" "1" "2024" "JDK 22-ea" "JDK Commands"
4040
.hy
4141
.SH NAME
4242
.PP
@@ -447,7 +447,7 @@ single-element certificate chain.
447447
When the \f[V]-signer\f[R] option is specified, a new certificate is
448448
generated and signed by the designated signer and stored as a
449449
multiple-element certificate chain (containing the generated certificate
450-
itself, and the signer?s certificate chain).
450+
itself, and the signer\[aq]s certificate chain).
451451
The certificate chain and private key are stored in a new keystore entry
452452
that is identified by its alias.
453453
.PP
@@ -467,16 +467,16 @@ specified.
467467
The \f[V]-signer\f[R] value specifies the alias of a
468468
\f[V]PrivateKeyEntry\f[R] for the signer that already exists in the
469469
keystore.
470-
This option is used to sign the certificate with the signer?s private
471-
key.
470+
This option is used to sign the certificate with the signer\[aq]s
471+
private key.
472472
This is especially useful for key agreement algorithms (i.e.
473473
the \f[V]-keyalg\f[R] value is \f[V]XDH\f[R], \f[V]X25519\f[R],
474474
\f[V]X448\f[R], or \f[V]DH\f[R]) as these keys cannot be used for
475475
digital signatures, and therefore a self-signed certificate cannot be
476476
created.
477477
.PP
478478
The \f[V]-signerkeypass\f[R] value specifies the password of the
479-
signer?s private key.
479+
signer\[aq]s private key.
480480
It can be specified if the private key of the signer entry is protected
481481
by a password different from the store password.
482482
.PP

src/java.rmi/share/man/rmiregistry.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
. ftr VB CB
3636
. ftr VBI CBI
3737
.\}
38-
.TH "RMIREGISTRY" "1" "2023" "JDK 21-ea" "JDK Commands"
38+
.TH "RMIREGISTRY" "1" "2024" "JDK 22-ea" "JDK Commands"
3939
.hy
4040
.SH NAME
4141
.PP

src/java.scripting/share/man/jrunscript.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
. ftr VB CB
3636
. ftr VBI CBI
3737
.\}
38-
.TH "JRUNSCRIPT" "1" "2023" "JDK 21-ea" "JDK Commands"
38+
.TH "JRUNSCRIPT" "1" "2024" "JDK 22-ea" "JDK Commands"
3939
.hy
4040
.SH NAME
4141
.PP

src/jdk.compiler/share/man/javac.1

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Copyright (c) 1994, 2020, Oracle and/or its affiliates. All rights reserved.
1+
.\" Copyright (c) 1994, 2023, Oracle and/or its affiliates. All rights reserved.
22
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
.\"
44
.\" This code is free software; you can redistribute it and/or modify it
@@ -35,7 +35,7 @@
3535
. ftr VB CB
3636
. ftr VBI CBI
3737
.\}
38-
.TH "JAVAC" "1" "2023" "JDK 21-ea" "JDK Commands"
38+
.TH "JAVAC" "1" "2024" "JDK 22-ea" "JDK Commands"
3939
.hy
4040
.SH NAME
4141
.PP
@@ -413,12 +413,14 @@ generated class file so that the method
413413
\f[V]java.lang.reflect.Executable.getParameters\f[R] from the Reflection
414414
API can retrieve them.
415415
.TP
416-
\f[V]-proc:\f[R][\f[V]none\f[R], \f[V]only\f[R]]
416+
\f[V]-proc:\f[R][\f[V]none\f[R], \f[V]only\f[R], \f[V]full\f[R]]
417417
Controls whether annotation processing and compilation are done.
418418
\f[V]-proc:none\f[R] means that compilation takes place without
419419
annotation processing.
420420
\f[V]-proc:only\f[R] means that only annotation processing is done,
421421
without any subsequent compilation.
422+
If this option is not used, or \f[V]-proc:full\f[R] is specified,
423+
annotation processing and compilation are done.
422424
.TP
423425
\f[V]-processor\f[R] \f[I]class1\f[R][\f[V],\f[R]\f[I]class2\f[R]\f[V],\f[R]\f[I]class3\f[R]...]
424426
Names of the annotation processors to run.
@@ -736,7 +738,8 @@ constructors in public and protected classes in exported packages.
736738
\f[V]options\f[R]: Warns about the issues relating to use of command
737739
line options.
738740
.IP \[bu] 2
739-
\f[V]output-file-clash\f[R]: Warns if any output file is overwritten during compilation.
741+
\f[V]output-file-clash\f[R]: Warns if any output file is overwritten
742+
during compilation.
740743
This can occur, for example, on case-insensitive filesystems.
741744
.IP \[bu] 2
742745
\f[V]overloads\f[R]: Warns about the issues related to method overloads.
@@ -779,8 +782,8 @@ instances of value-based classes.
779782
\f[V]text-blocks\f[R]: Warns about inconsistent white space characters
780783
in text block indentation.
781784
.IP \[bu] 2
782-
\f[V]this-escape\f[R]: Warns about constructors leaking
783-
\f[V]this\f[R] prior to subclass initialization.
785+
\f[V]this-escape\f[R]: Warns about constructors leaking \f[V]this\f[R]
786+
prior to subclass initialization.
784787
.IP \[bu] 2
785788
\f[V]try\f[R]: Warns about the issues relating to the use of try blocks
786789
(that is, try-with-resources).
@@ -2219,7 +2222,7 @@ Alternately, you can remove the \f[V]static\f[R] keyword from the
22192222
declaration of the method \f[V]m1\f[R].
22202223
.RE
22212224
.TP
2222-
\f[V]this\-escape\f[R]
2225+
\f[V]this-escape\f[R]
22232226
Warns about constructors leaking \f[V]this\f[R] prior to subclass
22242227
initialization.
22252228
For example, this class:
@@ -2239,24 +2242,24 @@ generates the following warning:
22392242
.IP
22402243
.nf
22412244
\f[CB]
2242-
MyClass.java:3: warning: [this-escape] possible 'this' escape
2245+
MyClass.java:3: warning: [this-escape] possible \[aq]this\[aq] escape
22432246
before subclass is fully initialized
22442247
System.out.println(this.hashCode());
2245-
^
2248+
\[ha]
22462249
\f[R]
22472250
.fi
22482251
.PP
2249-
A 'this' escape warning is generated when a constructor does something
2250-
that might result in a subclass method being invoked before the
2251-
constructor returns.
2252+
A \[aq]this\[aq] escape warning is generated when a constructor does
2253+
something that might result in a subclass method being invoked before
2254+
the constructor returns.
22522255
In such cases the subclass method would be operating on an incompletely
22532256
initialized instance.
22542257
In the above example, a subclass of \f[V]MyClass\f[R] that overrides
22552258
\f[V]hashCode()\f[R] to incorporate its own fields would likely produce
22562259
an incorrect result when invoked as shown.
22572260
.PP
2258-
Warnings are only generated if a subclass could exist that is outside
2259-
of the current module (or package, if no module) being compiled.
2261+
Warnings are only generated if a subclass could exist that is outside of
2262+
the current module (or package, if no module) being compiled.
22602263
So, for example, constructors in final and non-public classes do not
22612264
generate warnings.
22622265
.RE

src/jdk.compiler/share/man/serialver.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
. ftr VB CB
3636
. ftr VBI CBI
3737
.\}
38-
.TH "SERIALVER" "1" "2023" "JDK 21-ea" "JDK Commands"
38+
.TH "SERIALVER" "1" "2024" "JDK 22-ea" "JDK Commands"
3939
.hy
4040
.SH NAME
4141
.PP

src/jdk.hotspot.agent/share/man/jhsdb.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
. ftr VB CB
3636
. ftr VBI CBI
3737
.\}
38-
.TH "JHSDB" "1" "2023" "JDK 21-ea" "JDK Commands"
38+
.TH "JHSDB" "1" "2024" "JDK 22-ea" "JDK Commands"
3939
.hy
4040
.SH NAME
4141
.PP

src/jdk.httpserver/share/man/jwebserver.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
. ftr VB CB
3636
. ftr VBI CBI
3737
.\}
38-
.TH "JWEBSERVER" "1" "2023" "JDK 21-ea" "JDK Commands"
38+
.TH "JWEBSERVER" "1" "2024" "JDK 22-ea" "JDK Commands"
3939
.hy
4040
.SH NAME
4141
.PP

src/jdk.jartool/share/man/jar.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
. ftr VB CB
3636
. ftr VBI CBI
3737
.\}
38-
.TH "JAR" "1" "2023" "JDK 21-ea" "JDK Commands"
38+
.TH "JAR" "1" "2024" "JDK 22-ea" "JDK Commands"
3939
.hy
4040
.SH NAME
4141
.PP

src/jdk.jartool/share/man/jarsigner.1

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
. ftr VB CB
3737
. ftr VBI CBI
3838
.\}
39-
.TH "JARSIGNER" "1" "2023" "JDK 21-ea" "JDK Commands"
39+
.TH "JARSIGNER" "1" "2024" "JDK 22-ea" "JDK Commands"
4040
.hy
4141
.SH NAME
4242
.PP
@@ -1082,63 +1082,6 @@ name(s) cannot be set in this file.
10821082
.TP
10831083
\f[V]-version\f[R]
10841084
Prints the program version.
1085-
.SH DEPRECATED OPTIONS
1086-
.PP
1087-
The following \f[V]jarsigner\f[R] options are deprecated as of JDK 9 and
1088-
might be removed in a future JDK release.
1089-
.TP
1090-
\f[V]-altsigner\f[R] \f[I]class\f[R]
1091-
This option specifies an alternative signing mechanism.
1092-
The fully qualified class name identifies a class file that extends the
1093-
\f[V]com.sun.jarsigner.ContentSigner\f[R] abstract class.
1094-
The path to this class file is defined by the \f[V]-altsignerpath\f[R]
1095-
option.
1096-
If the \f[V]-altsigner\f[R] option is used, then the \f[V]jarsigner\f[R]
1097-
command uses the signing mechanism provided by the specified class.
1098-
Otherwise, the \f[V]jarsigner\f[R] command uses its default signing
1099-
mechanism.
1100-
.RS
1101-
.PP
1102-
For example, to use the signing mechanism provided by a class named
1103-
\f[V]com.sun.sun.jarsigner.AuthSigner\f[R], use the \f[V]jarsigner\f[R]
1104-
option \f[V]-altsigner com.sun.jarsigner.AuthSigner\f[R].
1105-
.RE
1106-
.TP
1107-
\f[V]-altsignerpath\f[R] \f[I]classpathlist\f[R]
1108-
Specifies the path to the class file and any JAR file it depends on.
1109-
The class file name is specified with the \f[V]-altsigner\f[R] option.
1110-
If the class file is in a JAR file, then this option specifies the path
1111-
to that JAR file.
1112-
.RS
1113-
.PP
1114-
An absolute path or a path relative to the current directory can be
1115-
specified.
1116-
If \f[I]classpathlist\f[R] contains multiple paths or JAR files, then
1117-
they should be separated with a:
1118-
.IP \[bu] 2
1119-
Colon (\f[V]:\f[R]) on Linux and macOS
1120-
.IP \[bu] 2
1121-
Semicolon (\f[V];\f[R]) on Windows
1122-
.PP
1123-
This option isn\[aq]t necessary when the class is already in the search
1124-
path.
1125-
.PP
1126-
The following example shows how to specify the path to a JAR file that
1127-
contains the class file.
1128-
The JAR file name is included.
1129-
.RS
1130-
.PP
1131-
\f[V]-altsignerpath /home/user/lib/authsigner.jar\f[R]
1132-
.RE
1133-
.PP
1134-
The following example shows how to specify the path to the JAR file that
1135-
contains the class file.
1136-
The JAR file name is omitted.
1137-
.RS
1138-
.PP
1139-
\f[V]-altsignerpath /home/user/classes/com/sun/tools/jarsigner/\f[R]
1140-
.RE
1141-
.RE
11421085
.SH ERRORS AND WARNINGS
11431086
.PP
11441087
During the signing or verifying process, the \f[V]jarsigner\f[R] command

0 commit comments

Comments
 (0)