> In the current version of the JDK, there is a small inconsistency in the > documentation for the `javap` command. > > The description currently states that, when no options are used, `javap` > prints only protected and public fields and methods. > > The javap command disassembles one or more class files. The output depends on > the options used. > When no options are used, the javap command prints the protected and public > fields, and methods > of the classes passed to it. > > This contradicts both the documented default for the `-package` option > > -package > Shows package/protected/public classes and members (default). > > and the actual behavior of the tool: package-private members are also printed > by default. > > The proposed change is to update the wording to state that `javap` prints > package-private, protected, and public fields and methods when no > access-filtering option is specified. > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Dusan Balek has updated the pull request incrementally with one additional commit since the last revision: Update reflecting review feedback Co-authored-by: Chen Liang <[email protected]> ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31321/files - new: https://git.openjdk.org/jdk/pull/31321/files/9bfdc6a9..18ac084c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31321&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31321&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/31321.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31321/head:pull/31321 PR: https://git.openjdk.org/jdk/pull/31321
