From 9bfdc6a93506cbc6c1759b0d30721d963409175e Mon Sep 17 00:00:00 2001 From: Dusan Balek Date: Fri, 29 May 2026 11:31:44 +0200 Subject: [PATCH 1/2] 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`) --- src/jdk.jdeps/share/man/javap.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jdk.jdeps/share/man/javap.md b/src/jdk.jdeps/share/man/javap.md index d09ac57f1966e..ee8f06c5d5879 100644 --- a/src/jdk.jdeps/share/man/javap.md +++ b/src/jdk.jdeps/share/man/javap.md @@ -1,5 +1,5 @@ --- -# Copyright (c) 1994, 2024, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1994, 2026, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -54,7 +54,8 @@ javap - disassemble one or more class files 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. +package private, protected and public fields, and methods of the classes passed +to it. The `javap` command isn't multirelease JAR aware. Using the class path form of the command results in viewing the base entry in all JAR files, multirelease or From 18ac084c6020c3a38e8b517ff9cb204998cf057d Mon Sep 17 00:00:00 2001 From: Dusan Balek Date: Mon, 1 Jun 2026 08:24:07 +0200 Subject: [PATCH 2/2] Update reflecting review feedback Co-authored-by: Chen Liang --- src/jdk.jdeps/share/man/javap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jdk.jdeps/share/man/javap.md b/src/jdk.jdeps/share/man/javap.md index ee8f06c5d5879..0e11176aa10c7 100644 --- a/src/jdk.jdeps/share/man/javap.md +++ b/src/jdk.jdeps/share/man/javap.md @@ -54,7 +54,7 @@ javap - disassemble one or more class files 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 -package private, protected and public fields, and methods of the classes passed +package private, protected, and public fields and methods declared in the classes passed to it. The `javap` command isn't multirelease JAR aware. Using the class path form of