From 886eb11c645b52ec0af9024d5d2c94fe8d3ceea7 Mon Sep 17 00:00:00 2001 From: Dusan Balek Date: Mon, 1 Jun 2026 16:24:26 +0000 Subject: [PATCH] 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`) Reviewed-by: liach --- 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 d09ac57f196..0e11176aa10 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 declared in 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