8385409: Javap documentation says by default protected and public members are printed but package private members are also printed by default (-package behavior, not -protected)#31321
Conversation
…bers are printed but package private members are also printed by default (`-package` behavior, not `-protected`)
|
👋 Welcome back dbalek! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
Webrevs
|
|
/label add compiler |
|
@AlanBateman |
|
/csr needed |
|
@dbalek , please run a quick CSR to cover the updating the text to match the long-standing behavior. |
|
@jddarcy has indicated that a compatibility and specification (CSR) request is needed for this pull request. @dbalek please create a CSR request for issue JDK-8385409 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
Co-authored-by: Chen Liang <liach@openjdk.org>
In the current version of the JDK, there is a small inconsistency in the documentation for the
javapcommand.The description currently states that, when no options are used,
javapprints only protected and public fields and methods.This contradicts both the documented default for the
-packageoptionand 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
javapprints package-private, protected, and public fields and methods when no access-filtering option is specified.Progress
Issues
-packagebehavior, not-protected) (Bug - P4)-packagebehavior, not-protected) (CSR)Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31321/head:pull/31321$ git checkout pull/31321Update a local copy of the PR:
$ git checkout pull/31321$ git pull https://git.openjdk.org/jdk.git pull/31321/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31321View PR using the GUI difftool:
$ git pr show -t 31321Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31321.diff
Using Webrev
Link to Webrev Comment