From dfuchs at openjdk.org Tue Nov 1 12:21:13 2022 From: dfuchs at openjdk.org (Daniel Fuchs) Date: Tue, 1 Nov 2022 12:21:13 GMT Subject: jmx-dev RFR: 8295729: Add jcheck whitespace checking for properties files [v3] In-Reply-To: References: Message-ID: On Mon, 24 Oct 2022 19:21:07 GMT, Magnus Ihse Bursie wrote: >> Properties files is essentially source code. It should have the same whitespace checks as all other source code, so we don't get spurious trailing whitespace changes. >> >> With the new Skara jcheck, it is possible to increase the coverage of the whitespace checks (in the old mercurial version, this was more or less impossible). >> >> The only manual change is to `.jcheck/conf`. All other changes were made by running `find . -type f -iname "*.properties" | xargs gsed -i -e 's/[ \t]*$//'`. > > Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision: > > - Revert "Remove check for .properties from jcheck" > > This reverts commit c91fdaa19dc06351598bd1c0614e1af3bfa08ae2. > - Change trailing space and tab in values to unicode encoding Changes to java (resp sun) .util.logging tests and javax.management tests look good to me. ------------- Marked as reviewed by dfuchs (Reviewer). PR: https://git.openjdk.org/jdk/pull/10792 From mchhipa at openjdk.org Fri Nov 4 15:21:10 2022 From: mchhipa at openjdk.org (Mahendra Chhipa) Date: Fri, 4 Nov 2022 15:21:10 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v3] In-Reply-To: References: Message-ID: On Thu, 27 Oct 2022 19:08:06 GMT, Bill Huang wrote: >> The current non local registry tests require a manual process that runs rmiregitrty on a different machine and changes the -Dregistry.host property in the source before running the tests on the local machine. This task is created to improve this manual process and provide a clearer instruction to the test engineer about the test requirement. >> >> Tests include: >> java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java >> java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java >> javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java > > Bill Huang has updated the pull request incrementally with one additional commit since the last revision: > > Reverted exclusion of nonlocal registry tests. test/jdk/java/rmi/registry/nonLocalRegistry/NonLocalRegistryBase.java line 31: > 29: static final String instructions = > 30: "This is a manual test that requires rmiregistry run on a different host" > 31: + ". Login or ssh to a different host, install the latest JDK " replace "latest JDK" with "JDK under test" test/jdk/java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java line 55: > 53: * property -Dregistry.host set to the hostname or IP address of the different host. > 54: */ > 55: public class NonLocalRegistryTest extends NonLocalRegistryBase { Move private static void assertIsAccessException(Throwable ex) method to NonLocalRegistryBase class. test/jdk/java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java line 81: > 79: * with the hostname or IP address of the different host and run the test with jtreg. > 80: */ > 81: public class NonLocalSkeletonTest extends NonLocalRegistryBase { Move private static void assertIsAccessException(Throwable ex) method to NonLocalRegistryBase class. test/jdk/javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java line 222: > 220: System.out.printf("Found expected AccessException: %s%n%n", t); > 221: } else { > 222: throw new RuntimeException("AccessException did not occur when expected", ex); private static void assertIsAccessException(Throwable ex) is define in all these three test classes, move this method in lib/jdk/test/lib test/jdk/javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java line 226: > 224: } > 225: > 226: private String readHostInput(int index) { Duplicate code, this code is also in NonLocalRegistryBase.java, Please move this code in a common class under lib/jdk/test/lib. Or move this NonLocalRegistryBase.java under lib/jdk/test/lib and provide some generic name. ------------- PR: https://git.openjdk.org/jdk/pull/10825 From bhuang at openjdk.org Sat Nov 5 00:04:39 2022 From: bhuang at openjdk.org (Bill Huang) Date: Sat, 5 Nov 2022 00:04:39 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v4] In-Reply-To: References: Message-ID: > The current non local registry tests require a manual process that runs rmiregitrty on a different machine and changes the -Dregistry.host property in the source before running the tests on the local machine. This task is created to improve this manual process and provide a clearer instruction to the test engineer about the test requirement. > > Tests include: > java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java > java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java > javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java Bill Huang has updated the pull request incrementally with one additional commit since the last revision: Implemented review comments. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/10825/files - new: https://git.openjdk.org/jdk/pull/10825/files/5ee556aa..278564b3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=10825&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10825&range=02-03 Stats: 217 lines in 5 files changed: 75 ins; 113 del; 29 mod Patch: https://git.openjdk.org/jdk/pull/10825.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10825/head:pull/10825 PR: https://git.openjdk.org/jdk/pull/10825 From bhuang at openjdk.org Sat Nov 5 00:04:40 2022 From: bhuang at openjdk.org (Bill Huang) Date: Sat, 5 Nov 2022 00:04:40 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v3] In-Reply-To: References: Message-ID: <2VbiCuTeGEE80AzxSyf5ePuW1H4yfqpr7-_mE16NPxA=.a12dff2e-c03e-4f8f-b6f5-18b25ab3cb24@github.com> On Fri, 4 Nov 2022 15:17:43 GMT, Mahendra Chhipa wrote: >> Bill Huang has updated the pull request incrementally with one additional commit since the last revision: >> >> Reverted exclusion of nonlocal registry tests. > > test/jdk/javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java line 222: > >> 220: System.out.printf("Found expected AccessException: %s%n%n", t); >> 221: } else { >> 222: throw new RuntimeException("AccessException did not occur when expected", ex); > > private static void assertIsAccessException(Throwable ex) is define in all these three test classes, move this method in lib/jdk/test/lib This method is test dependent that checks for specific keywords in the AccessException. It seems better remain inside the test classes. ------------- PR: https://git.openjdk.org/jdk/pull/10825 From bhuang at openjdk.org Mon Nov 7 19:38:08 2022 From: bhuang at openjdk.org (Bill Huang) Date: Mon, 7 Nov 2022 19:38:08 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version Message-ID: There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils. ------------- Commit messages: - JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version Changes: https://git.openjdk.org/jdk/pull/11029/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11029&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8293450 Stats: 453 lines in 4 files changed: 216 ins; 234 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/11029.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11029/head:pull/11029 PR: https://git.openjdk.org/jdk/pull/11029 From sspitsyn at openjdk.org Mon Nov 7 23:22:30 2022 From: sspitsyn at openjdk.org (Serguei Spitsyn) Date: Mon, 7 Nov 2022 23:22:30 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version In-Reply-To: References: Message-ID: <_YdUIZ-jJx061FAojvH4lGptQWtOlSsDIT5Dgcbo9_Q=.24fa4704-2ec1-49e2-bccb-acc14d3d492b@github.com> On Mon, 7 Nov 2022 19:23:05 GMT, Bill Huang wrote: > There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. The refactoring looks pretty good. But I have a couple of questions. Q1: The method `grantAccess` is converted to the util method `grantFileAccess` and it does not look the same. Could you, please, explain what are the changes? Q2: I'm confused about conversion of the shell tests. Your fix does not convert any shell test. Also, I do not see any changes to the shell ile `test/jdk/sun/management/jmxremote/bootstrap/ReadWriteForbidsCreateTest.sh` listed in the enhancement. Can you explain, please? ------------- PR: https://git.openjdk.org/jdk/pull/11029 From bhuang at openjdk.org Tue Nov 8 00:21:31 2022 From: bhuang at openjdk.org (Bill Huang) Date: Tue, 8 Nov 2022 00:21:31 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version In-Reply-To: <_YdUIZ-jJx061FAojvH4lGptQWtOlSsDIT5Dgcbo9_Q=.24fa4704-2ec1-49e2-bccb-acc14d3d492b@github.com> References: <_YdUIZ-jJx061FAojvH4lGptQWtOlSsDIT5Dgcbo9_Q=.24fa4704-2ec1-49e2-bccb-acc14d3d492b@github.com> Message-ID: On Mon, 7 Nov 2022 23:20:15 GMT, Serguei Spitsyn wrote: >> There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. > > The refactoring looks pretty good. > But I have a couple of questions. > Q1: The method `grantAccess` is converted to the util method `grantFileAccess` and it does not look the same. Could you, please, explain what are the changes? > Q2: I'm confused about conversion of the shell tests. Your fix does not convert any shell test. Also, I do not see any changes to the shell ile `test/jdk/sun/management/jmxremote/bootstrap/ReadWriteForbidsCreateTest.sh` listed in the enhancement. Can you explain, please? Hi @sspitsyn, the methods `grantAccess` and `grantFileAccess` are almost identical except for the parameter `AccessControl access` being changed to a boolean which is used to indicate user access or full access. There is also a minor change in building a new ACL entry out of the original entry. For your Q2 , it is in closed part of JDK. Please see the JBS ticket for the PR link. ------------- PR: https://git.openjdk.org/jdk/pull/11029 From sspitsyn at openjdk.org Tue Nov 8 08:20:27 2022 From: sspitsyn at openjdk.org (Serguei Spitsyn) Date: Tue, 8 Nov 2022 08:20:27 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version In-Reply-To: References: Message-ID: On Mon, 7 Nov 2022 19:23:05 GMT, Bill Huang wrote: > There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. test/lib/jdk/test/lib/Utils.java line 980: > 978: PosixFilePermissions.fromString("rwxrwxrwx")); > 979: } > 980: } else if (attr.contains("acl")) { I like more the style as it was before: String perms = userOnly ? "rw-------" : "rwxrwxrwx"; Files.setPosixFilePermissions(file, PosixFilePermissions.fromString(perms)); instead of this: Files.setPosixFilePermissions(file, PosixFilePermissions.fromString("rwx------")); } else { /* Allow access to everyone */ Files.setPosixFilePermissions(file, PosixFilePermissions.fromString("rwxrwxrwx")); ------------- PR: https://git.openjdk.org/jdk/pull/11029 From sspitsyn at openjdk.org Tue Nov 8 08:39:08 2022 From: sspitsyn at openjdk.org (Serguei Spitsyn) Date: Tue, 8 Nov 2022 08:39:08 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version In-Reply-To: References: Message-ID: <_e2mWJMihJQGeKKLEtUcHBLZy6s1rOLYnNcLcRQzuKQ=.03670db8-ac4e-4605-a575-87890bc4d83b@github.com> On Mon, 7 Nov 2022 19:23:05 GMT, Bill Huang wrote: > There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. I've placed a couple of comments. Otherwise, it looks okay to me. Thanks, Serguei ------------- PR: https://git.openjdk.org/jdk/pull/11029 From sspitsyn at openjdk.org Tue Nov 8 08:44:18 2022 From: sspitsyn at openjdk.org (Serguei Spitsyn) Date: Tue, 8 Nov 2022 08:44:18 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/closed/sun/management/ shell tests to Java version In-Reply-To: References: Message-ID: On Mon, 7 Nov 2022 19:23:05 GMT, Bill Huang wrote: > There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. test/lib/jdk/test/lib/Utils.java line 1007: > 1005: } > 1006: } > 1007: } What was your motivation to get rid of the `Util` methods `revokeAccess`, `allowAccess` and `buildAclEntry`? The implementation did not become more clearer nor simpler. But reviewing it became harder. ------------- PR: https://git.openjdk.org/jdk/pull/11029 From bhuang at openjdk.org Tue Nov 8 18:10:24 2022 From: bhuang at openjdk.org (Bill Huang) Date: Tue, 8 Nov 2022 18:10:24 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/sun/management/ shell tests to Java version In-Reply-To: References: Message-ID: <1fQtMd7Wtg4mWIhjbcekB2jGf-3mf3XESTutxmey0OY=.1326b1ee-60e1-498c-a76e-e3b1ddc0c8f6@github.com> On Tue, 8 Nov 2022 08:39:39 GMT, Serguei Spitsyn wrote: >> There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. > > test/lib/jdk/test/lib/Utils.java line 1007: > >> 1005: } >> 1006: } >> 1007: } > > What was your motivation to get rid of the `Util` methods `revokeAccess`, `allowAccess` and `buildAclEntry`? The implementation did not become more clearer nor simpler. But reviewing it became harder. Sure, I will add those methods back. ------------- PR: https://git.openjdk.org/jdk/pull/11029 From bhuang at openjdk.org Tue Nov 8 18:20:34 2022 From: bhuang at openjdk.org (Bill Huang) Date: Tue, 8 Nov 2022 18:20:34 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/sun/management/ shell tests to Java version [v2] In-Reply-To: References: Message-ID: > There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. Bill Huang has updated the pull request incrementally with one additional commit since the last revision: Implemented review comments. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/11029/files - new: https://git.openjdk.org/jdk/pull/11029/files/98a7188e..191cd5ca Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=11029&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11029&range=00-01 Stats: 47 lines in 1 file changed: 31 ins; 11 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/11029.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11029/head:pull/11029 PR: https://git.openjdk.org/jdk/pull/11029 From sspitsyn at openjdk.org Wed Nov 9 10:03:34 2022 From: sspitsyn at openjdk.org (Serguei Spitsyn) Date: Wed, 9 Nov 2022 10:03:34 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/sun/management/ shell tests to Java version [v2] In-Reply-To: References: Message-ID: <5KO0PHIMbjYP5ScIoj_NHc2QpaW5pWSdM-zUuk6gcVA=.a0d52fdf-94fb-4cc7-b30a-30c5d6642256@github.com> On Tue, 8 Nov 2022 18:20:34 GMT, Bill Huang wrote: >> There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. > > Bill Huang has updated the pull request incrementally with one additional commit since the last revision: > > Implemented review comments. Thank you for the update. Looks good. Thanks, Serguei ------------- Marked as reviewed by sspitsyn (Reviewer). PR: https://git.openjdk.org/jdk/pull/11029 From kevinw at openjdk.org Wed Nov 9 12:41:01 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 9 Nov 2022 12:41:01 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/sun/management/ shell tests to Java version [v2] In-Reply-To: References: Message-ID: On Tue, 8 Nov 2022 18:20:34 GMT, Bill Huang wrote: >> There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. > > Bill Huang has updated the pull request incrementally with one additional commit since the last revision: > > Implemented review comments. Looks ok! 8-) ------------- Marked as reviewed by kevinw (Committer). PR: https://git.openjdk.org/jdk/pull/11029 From bhuang at openjdk.org Wed Nov 9 18:12:39 2022 From: bhuang at openjdk.org (Bill Huang) Date: Wed, 9 Nov 2022 18:12:39 GMT Subject: jmx-dev RFR: JDK-8293450 Convert test/sun/management/ shell tests to Java version [v2] In-Reply-To: References: Message-ID: On Tue, 8 Nov 2022 18:20:34 GMT, Bill Huang wrote: >> There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. > > Bill Huang has updated the pull request incrementally with one additional commit since the last revision: > > Implemented review comments. It seems there is an integration issue with this PR as the JBS ticket is marked as confidential. I will open a new ticket for this change. ------------- PR: https://git.openjdk.org/jdk/pull/11029 From bhuang at openjdk.org Wed Nov 9 19:05:40 2022 From: bhuang at openjdk.org (Bill Huang) Date: Wed, 9 Nov 2022 19:05:40 GMT Subject: jmx-dev Integrated: 8296718: Refactor bootstrap Test Common Functionalities to test/lib/Utils In-Reply-To: References: Message-ID: On Mon, 7 Nov 2022 19:23:05 GMT, Bill Huang wrote: > There is no new changes in the open portion of JDK, but extracting common functionalities in bootstrap Utils to test/lib/Utils which can be used in the closed part. This pull request has now been integrated. Changeset: cc8bf950 Author: Bill Huang URL: https://git.openjdk.org/jdk/commit/cc8bf95046d1fba0f88b0e17481f36b2be870659 Stats: 473 lines in 4 files changed: 236 ins; 234 del; 3 mod 8296718: Refactor bootstrap Test Common Functionalities to test/lib/Utils Reviewed-by: sspitsyn, kevinw ------------- PR: https://git.openjdk.org/jdk/pull/11029 From prappo at openjdk.org Mon Nov 14 20:03:35 2022 From: prappo at openjdk.org (Pavel Rappo) Date: Mon, 14 Nov 2022 20:03:35 GMT Subject: jmx-dev RFR: 8296953: Fix a typo in exception documentation Message-ID: Please review this trivial documentation change that fixes a typo accidentally found while comparing javadoc output for an unrelated change in jdk.javadoc. ------------- Commit messages: - Initial commit Changes: https://git.openjdk.org/jdk/pull/11140/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11140&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8296953 Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/11140.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11140/head:pull/11140 PR: https://git.openjdk.org/jdk/pull/11140 From cjplummer at openjdk.org Mon Nov 14 20:23:26 2022 From: cjplummer at openjdk.org (Chris Plummer) Date: Mon, 14 Nov 2022 20:23:26 GMT Subject: jmx-dev RFR: 8296953: Fix a typo in exception documentation In-Reply-To: References: Message-ID: On Mon, 14 Nov 2022 19:04:49 GMT, Pavel Rappo wrote: > Please review this trivial documentation change that fixes a typo accidentally found while comparing javadoc output for an unrelated change in jdk.javadoc. Looks like a day 1 bug. Changes look good. ------------- Marked as reviewed by cjplummer (Reviewer). PR: https://git.openjdk.org/jdk/pull/11140 From dfuchs at openjdk.org Mon Nov 14 21:33:59 2022 From: dfuchs at openjdk.org (Daniel Fuchs) Date: Mon, 14 Nov 2022 21:33:59 GMT Subject: jmx-dev RFR: 8296953: Fix a typo in exception documentation In-Reply-To: References: Message-ID: On Mon, 14 Nov 2022 19:04:49 GMT, Pavel Rappo wrote: > Please review this trivial documentation change that fixes a typo accidentally found while comparing javadoc output for an unrelated change in jdk.javadoc. Marked as reviewed by dfuchs (Reviewer). ------------- PR: https://git.openjdk.org/jdk/pull/11140 From prappo at openjdk.org Wed Nov 16 09:21:09 2022 From: prappo at openjdk.org (Pavel Rappo) Date: Wed, 16 Nov 2022 09:21:09 GMT Subject: jmx-dev Integrated: 8296953: Fix a typo in exception documentation In-Reply-To: References: Message-ID: On Mon, 14 Nov 2022 19:04:49 GMT, Pavel Rappo wrote: > Please review this trivial documentation change that fixes a typo accidentally found while comparing javadoc output for an unrelated change in jdk.javadoc. This pull request has now been integrated. Changeset: 97ab2c3e Author: Pavel Rappo URL: https://git.openjdk.org/jdk/commit/97ab2c3ea61daa32ab51506fefa42d486121e089 Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod 8296953: Fix a typo in exception documentation Reviewed-by: cjplummer, dfuchs ------------- PR: https://git.openjdk.org/jdk/pull/11140 From duke at openjdk.org Thu Nov 17 06:36:59 2022 From: duke at openjdk.org (Poison) Date: Thu, 17 Nov 2022 06:36:59 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks Message-ID: As the title says, add the volatile modifier. ------------- Commit messages: - 8297173: usageTicks and totalTicks should be volatile Changes: https://git.openjdk.org/jdk/pull/11199/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11199&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8297173 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/11199.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11199/head:pull/11199 PR: https://git.openjdk.org/jdk/pull/11199 From sgehwolf at openjdk.org Thu Nov 17 09:12:23 2022 From: sgehwolf at openjdk.org (Severin Gehwolf) Date: Thu, 17 Nov 2022 09:12:23 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks In-Reply-To: References: Message-ID: On Thu, 17 Nov 2022 06:28:37 GMT, Poison wrote: > As the title says, add the volatile modifier. Seems OK to me. ------------- Marked as reviewed by sgehwolf (Reviewer). PR: https://git.openjdk.org/jdk/pull/11199 From sgehwolf at openjdk.org Thu Nov 17 09:28:19 2022 From: sgehwolf at openjdk.org (Severin Gehwolf) Date: Thu, 17 Nov 2022 09:28:19 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks In-Reply-To: References: Message-ID: <02FwbRm7VD08T3TD2jyV3UKaazbCF2-EC4eFAMJJowY=.bc46e149-a66e-4c9c-ab6f-4d878d9bb3b3@github.com> On Thu, 17 Nov 2022 06:28:37 GMT, Poison wrote: > As the title says, add the volatile modifier. Please enable testing for your fork. ------------- PR: https://git.openjdk.org/jdk/pull/11199 From alanb at openjdk.org Thu Nov 17 09:37:23 2022 From: alanb at openjdk.org (Alan Bateman) Date: Thu, 17 Nov 2022 09:37:23 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks In-Reply-To: References: Message-ID: On Thu, 17 Nov 2022 06:28:37 GMT, Poison wrote: > As the title says, add the volatile modifier. src/jdk.management/unix/classes/com/sun/management/internal/OperatingSystemImpl.java line 53: > 51: private abstract class ContainerCpuTicks { > 52: private volatile long usageTicks = 0; > 53: private volatile long totalTicks = 0; You can drop initialising the fields to 0 (their default value) while you are at it as they are volatile writes. ------------- PR: https://git.openjdk.org/jdk/pull/11199 From duke at openjdk.org Thu Nov 17 09:43:39 2022 From: duke at openjdk.org (Poison) Date: Thu, 17 Nov 2022 09:43:39 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks [v2] In-Reply-To: References: Message-ID: <__C9hdFdiGwECNQ9NBVry5dNseFyVSlHQSN8GYdlVf8=.65b8af68-5327-42e4-9445-e2237cb38aa7@github.com> > As the title says, add the volatile modifier. Poison has updated the pull request incrementally with one additional commit since the last revision: 8297173: usageTicks and totalTicks should be volatile ------------- Changes: - all: https://git.openjdk.org/jdk/pull/11199/files - new: https://git.openjdk.org/jdk/pull/11199/files/dd459966..f6b19bb0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=11199&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11199&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/11199.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11199/head:pull/11199 PR: https://git.openjdk.org/jdk/pull/11199 From duke at openjdk.org Thu Nov 17 09:43:39 2022 From: duke at openjdk.org (Poison) Date: Thu, 17 Nov 2022 09:43:39 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks [v2] In-Reply-To: References: Message-ID: On Thu, 17 Nov 2022 09:35:07 GMT, Alan Bateman wrote: >> Poison has updated the pull request incrementally with one additional commit since the last revision: >> >> 8297173: usageTicks and totalTicks should be volatile > > src/jdk.management/unix/classes/com/sun/management/internal/OperatingSystemImpl.java line 53: > >> 51: private abstract class ContainerCpuTicks { >> 52: private volatile long usageTicks = 0; >> 53: private volatile long totalTicks = 0; > > You can drop initialising the fields to 0 (their default value) while you are at it as they are volatile writes. OK ------------- PR: https://git.openjdk.org/jdk/pull/11199 From alanb at openjdk.org Thu Nov 17 10:14:35 2022 From: alanb at openjdk.org (Alan Bateman) Date: Thu, 17 Nov 2022 10:14:35 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks [v2] In-Reply-To: <__C9hdFdiGwECNQ9NBVry5dNseFyVSlHQSN8GYdlVf8=.65b8af68-5327-42e4-9445-e2237cb38aa7@github.com> References: <__C9hdFdiGwECNQ9NBVry5dNseFyVSlHQSN8GYdlVf8=.65b8af68-5327-42e4-9445-e2237cb38aa7@github.com> Message-ID: On Thu, 17 Nov 2022 09:43:39 GMT, Poison wrote: >> As the title says, add the volatile modifier. > > Poison has updated the pull request incrementally with one additional commit since the last revision: > > 8297173: usageTicks and totalTicks should be volatile Marked as reviewed by alanb (Reviewer). ------------- PR: https://git.openjdk.org/jdk/pull/11199 From sgehwolf at openjdk.org Fri Nov 18 10:44:53 2022 From: sgehwolf at openjdk.org (Severin Gehwolf) Date: Fri, 18 Nov 2022 10:44:53 GMT Subject: jmx-dev RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks [v2] In-Reply-To: <__C9hdFdiGwECNQ9NBVry5dNseFyVSlHQSN8GYdlVf8=.65b8af68-5327-42e4-9445-e2237cb38aa7@github.com> References: <__C9hdFdiGwECNQ9NBVry5dNseFyVSlHQSN8GYdlVf8=.65b8af68-5327-42e4-9445-e2237cb38aa7@github.com> Message-ID: On Thu, 17 Nov 2022 09:43:39 GMT, Poison wrote: >> As the title says, add the volatile modifier. > > Poison has updated the pull request incrementally with one additional commit since the last revision: > > 8297173: usageTicks and totalTicks should be volatile @tianshuang If you /integrate again, I can sponsor for you if you like. ------------- PR: https://git.openjdk.org/jdk/pull/11199 From duke at openjdk.org Fri Nov 18 10:48:29 2022 From: duke at openjdk.org (Poison) Date: Fri, 18 Nov 2022 10:48:29 GMT Subject: jmx-dev Integrated: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks In-Reply-To: References: Message-ID: On Thu, 17 Nov 2022 06:28:37 GMT, Poison wrote: > As the title says, add the volatile modifier. This pull request has now been integrated. Changeset: dd18d76b Author: tianshuang Committer: Severin Gehwolf URL: https://git.openjdk.org/jdk/commit/dd18d76b4c1dfa79707634bcd4df4f8e7cfb8b70 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks Reviewed-by: sgehwolf, alanb ------------- PR: https://git.openjdk.org/jdk/pull/11199 From mchhipa at openjdk.org Fri Nov 25 17:05:11 2022 From: mchhipa at openjdk.org (Mahendra Chhipa) Date: Fri, 25 Nov 2022 17:05:11 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v4] In-Reply-To: References: Message-ID: <4y7Bt3HYXsF48N7jku8aOSm8v9vHeywxe0nfX_2hBmI=.f4c24c4b-5ee0-4ced-ba0d-9f6dda1ff632@github.com> On Sat, 5 Nov 2022 00:04:39 GMT, Bill Huang wrote: >> The current non local registry tests require a manual process that runs rmiregitrty on a different machine and changes the -Dregistry.host property in the source before running the tests on the local machine. This task is created to improve this manual process and provide a clearer instruction to the test engineer about the test requirement. >> >> Tests include: >> java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java >> java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java >> javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java > > Bill Huang has updated the pull request incrementally with one additional commit since the last revision: > > Implemented review comments. LGTM ------------- PR: https://git.openjdk.org/jdk/pull/10825 From mernst at openjdk.org Sun Nov 27 17:53:30 2022 From: mernst at openjdk.org (Michael Ernst) Date: Sun, 27 Nov 2022 17:53:30 GMT Subject: jmx-dev RFR: 8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni [v2] In-Reply-To: References: Message-ID: On Mon, 26 Sep 2022 16:51:36 GMT, Michael Ernst wrote: >> 8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni > > Michael Ernst has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains six commits: > > - Reinstate typos in Apache code that is copied into the JDK > - Merge ../jdk-openjdk into typos-typos > - Remove file that was removed upstream > - Fix inconsistency in capitalization > - Undo change in zlip > - Fix typos Could someone who knows the undocumented ins and outs of creating JDK pull requests could split this pull request up into multiple PRs? Then it can be merged, rather than wasting all the effort that went into it. ------------- PR: https://git.openjdk.org/jdk/pull/10029 From jpai at openjdk.org Mon Nov 28 09:02:13 2022 From: jpai at openjdk.org (Jaikiran Pai) Date: Mon, 28 Nov 2022 09:02:13 GMT Subject: jmx-dev RFR: 8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni [v2] In-Reply-To: References: Message-ID: On Sun, 27 Nov 2022 17:49:57 GMT, Michael Ernst wrote: > Could someone who knows the undocumented ins and outs of creating JDK pull requests could split this pull request up into multiple PRs? Then it can be merged, rather than wasting all the effort that went into it. I've raised https://github.com/openjdk/jdk/pull/11385 for one set of changes from this current PR. I'll pick up the other ones shortly in different PRs. ------------- PR: https://git.openjdk.org/jdk/pull/10029 From alanb at openjdk.org Mon Nov 28 14:00:41 2022 From: alanb at openjdk.org (Alan Bateman) Date: Mon, 28 Nov 2022 14:00:41 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v4] In-Reply-To: References: Message-ID: On Sat, 5 Nov 2022 00:04:39 GMT, Bill Huang wrote: >> The current non local registry tests require a manual process that runs rmiregitrty on a different machine and changes the -Dregistry.host property in the source before running the tests on the local machine. This task is created to improve this manual process and provide a clearer instruction to the test engineer about the test requirement. >> >> Tests include: >> java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java >> java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java >> javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java > > Bill Huang has updated the pull request incrementally with one additional commit since the last revision: > > Implemented review comments. test/jdk/javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java line 167: > 165: Set.copyOf(Arrays.asList(InetAddress.getAllByName(myHostName))); > 166: Set hostAddrs = > 167: Set.copyOf(Arrays.asList(InetAddress.getAllByName(host))); Is there a reason to change this from Set.of? ------------- PR: https://git.openjdk.org/jdk/pull/10825 From bhuang at openjdk.org Mon Nov 28 17:57:28 2022 From: bhuang at openjdk.org (Bill Huang) Date: Mon, 28 Nov 2022 17:57:28 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v4] In-Reply-To: References: Message-ID: On Mon, 28 Nov 2022 13:56:29 GMT, Alan Bateman wrote: >> Bill Huang has updated the pull request incrementally with one additional commit since the last revision: >> >> Implemented review comments. > > test/jdk/javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java line 167: > >> 165: Set.copyOf(Arrays.asList(InetAddress.getAllByName(myHostName))); >> 166: Set hostAddrs = >> 167: Set.copyOf(Arrays.asList(InetAddress.getAllByName(host))); > > Is there a reason to change this from Set.of? This is a workaround for duplicate elements detected by Set.of(). On my localhost, InetAddress.getAllByName(localhost returns duplicate IPv6 addresses with different scoped id which is not counted during comparison. This change shouldn't impact the goal of these tests which is to verify that registry modification request from client side is prohibited. ------------- PR: https://git.openjdk.org/jdk/pull/10825 From alanb at openjdk.org Mon Nov 28 18:38:24 2022 From: alanb at openjdk.org (Alan Bateman) Date: Mon, 28 Nov 2022 18:38:24 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v4] In-Reply-To: References: Message-ID: On Mon, 28 Nov 2022 17:54:51 GMT, Bill Huang wrote: >> test/jdk/javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java line 167: >> >>> 165: Set.copyOf(Arrays.asList(InetAddress.getAllByName(myHostName))); >>> 166: Set hostAddrs = >>> 167: Set.copyOf(Arrays.asList(InetAddress.getAllByName(host))); >> >> Is there a reason to change this from Set.of? > > This is a workaround for duplicate elements detected by Set.of(). On my localhost, InetAddress.getAllByName(localhost returns duplicate IPv6 addresses with different scoped id which is not counted during comparison. This change shouldn't impact the goal of these tests which is to verify that registry modification request from client side is prohibited. Thanks. You might want to add a comment to avoid drive-by suggestions to simplify it. ------------- PR: https://git.openjdk.org/jdk/pull/10825 From bhuang at openjdk.org Tue Nov 29 00:55:08 2022 From: bhuang at openjdk.org (Bill Huang) Date: Tue, 29 Nov 2022 00:55:08 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v5] In-Reply-To: References: Message-ID: > The current non local registry tests require a manual process that runs rmiregitrty on a different machine and changes the -Dregistry.host property in the source before running the tests on the local machine. This task is created to improve this manual process and provide a clearer instruction to the test engineer about the test requirement. > > Tests include: > java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java > java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java > javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java Bill Huang has updated the pull request incrementally with one additional commit since the last revision: Implemented review comments. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/10825/files - new: https://git.openjdk.org/jdk/pull/10825/files/278564b3..cff3773c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=10825&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10825&range=03-04 Stats: 9 lines in 3 files changed: 5 ins; 2 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/10825.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10825/head:pull/10825 PR: https://git.openjdk.org/jdk/pull/10825 From bhuang at openjdk.org Tue Nov 29 01:06:49 2022 From: bhuang at openjdk.org (Bill Huang) Date: Tue, 29 Nov 2022 01:06:49 GMT Subject: jmx-dev RFR: JDK-8295756 Improve NonLocalRegistry Manual Test Process [v6] In-Reply-To: References: Message-ID: > The current non local registry tests require a manual process that runs rmiregitrty on a different machine and changes the -Dregistry.host property in the source before running the tests on the local machine. This task is created to improve this manual process and provide a clearer instruction to the test engineer about the test requirement. > > Tests include: > java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java > java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java > javax/management/remote/nonLocalAccess/NonLocalJMXRemoteTest.java Bill Huang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits: - Merge master - Implemented review comments. - Implemented review comments. - Reverted exclusion of nonlocal registry tests. - Updated test instruction messages. - Updated TEST.groups - JDK-8295756 Improve NonLocalRegistry Manual Test Process ------------- Changes: https://git.openjdk.org/jdk/pull/10825/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10825&range=05 Stats: 350 lines in 7 files changed: 256 ins; 58 del; 36 mod Patch: https://git.openjdk.org/jdk/pull/10825.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10825/head:pull/10825 PR: https://git.openjdk.org/jdk/pull/10825 From ihse at openjdk.org Tue Nov 29 19:26:36 2022 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 29 Nov 2022 19:26:36 GMT Subject: jmx-dev RFR: 8295729: Add jcheck whitespace checking for properties files [v3] In-Reply-To: References: Message-ID: On Mon, 24 Oct 2022 19:21:07 GMT, Magnus Ihse Bursie wrote: >> Properties files is essentially source code. It should have the same whitespace checks as all other source code, so we don't get spurious trailing whitespace changes. >> >> With the new Skara jcheck, it is possible to increase the coverage of the whitespace checks (in the old mercurial version, this was more or less impossible). >> >> The only manual change is to `.jcheck/conf`. All other changes were made by running `find . -type f -iname "*.properties" | xargs gsed -i -e 's/[ \t]*$//'`. > > Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision: > > - Revert "Remove check for .properties from jcheck" > > This reverts commit c91fdaa19dc06351598bd1c0614e1af3bfa08ae2. > - Change trailing space and tab in values to unicode encoding Yes bot, I know. I'll need to split this up into multiple steps, but please keep this open for a while more. Thank you. ------------- PR: https://git.openjdk.org/jdk/pull/10792 From kevinw at openjdk.org Wed Nov 30 13:22:21 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 13:22:21 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal Message-ID: Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. More details in bug, and CSR JDK-8297795 ------------- Commit messages: - Test updates - 8297794: Deprecate JMX Management Applets for Removal Changes: https://git.openjdk.org/jdk/pull/11430/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11430&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8297794 Stats: 41 lines in 19 files changed: 23 ins; 1 del; 17 mod Patch: https://git.openjdk.org/jdk/pull/11430.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11430/head:pull/11430 PR: https://git.openjdk.org/jdk/pull/11430 From alanb at openjdk.org Wed Nov 30 13:35:20 2022 From: alanb at openjdk.org (Alan Bateman) Date: Wed, 30 Nov 2022 13:35:20 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal In-Reply-To: References: Message-ID: <-_66BL8kLaRv8aSuOJBlJscW0ftTOt8hmg6dobnS8n4=.429e2240-61f6-429c-994b-139de1284581@github.com> On Wed, 30 Nov 2022 12:08:22 GMT, Kevin Walls wrote: > Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. > > This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. > > More details in bug, and CSR JDK-8297795 Are you planning to add the @deprecated tag with the description for why they are deprecated? I'm surprised the java.management module compiles without it but maybe this module has doclint config in its make file. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From dfuchs at openjdk.org Wed Nov 30 14:02:22 2022 From: dfuchs at openjdk.org (Daniel Fuchs) Date: Wed, 30 Nov 2022 14:02:22 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 12:08:22 GMT, Kevin Walls wrote: > Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. > > This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. > > More details in bug, and CSR JDK-8297795 I have the same remark as Alan - I believe an `@deprecated ` text is needed in the API documentation of the public exported classes that are deprecated. At the minimum something like: * @deprecated This class is deprecated for removal. There is no replacement. I also see that you have chosen to add `@SuppressWarnings` in tests. Not sure what the rules are for the serviceability area - but usually it's fine to keep the deprecation warning in tests (that is: suppressing deprecation warnings in tests is usually optional). src/java.management/share/classes/javax/management/loading/MLetObjectInputStream.java line 43: > 41: class MLetObjectInputStream extends ObjectInputStream { > 42: > 43: @SuppressWarnings("removal") Shouldn't `MLetObjectInputStream` be deprecated for removal too? I mean - if MLet was removed - would we need to keep that class? If it were deprecated for removal too then I suspect that there would be no need to suppress the warning here (and below). src/java.management/share/classes/javax/management/loading/MLetParser.java line 156: > 154: * Scan an html file for {@literal } tags. > 155: */ > 156: @SuppressWarnings("removal") Same remark here. This class should probably be deprecated for removal too. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 14:28:21 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 14:28:21 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 12:08:22 GMT, Kevin Walls wrote: > Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. > > This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. > > More details in bug, and CSR JDK-8297795 Thanks both, yes will add a doc comment also. Currently the generated docs give you: "Deprecated, for removal: This API element is subject to removal in a future version." But will add more around that. MLetObjectInputStream and MLetParser are not public classes, so thinking they are not part of the public API we need to deprecate before removal. Happy to try and avoid test logs being full of excess noise with those suppression annotations... 8-) ------------- PR: https://git.openjdk.org/jdk/pull/11430 From dfuchs at openjdk.org Wed Nov 30 14:46:06 2022 From: dfuchs at openjdk.org (Daniel Fuchs) Date: Wed, 30 Nov 2022 14:46:06 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 14:24:36 GMT, Kevin Walls wrote: > MLetObjectInputStream and MLetParser are not public classes, so thinking they are not part of the public API we need to deprecate before removal. Whether a class is public exported or not has no real relationship with whether it should have the `@Deprecated` annotation or not. It is better to add the `@Deprecated` annotation eagerly to all classes that are part of the feature being deprecated, if they are only used for the implementation of that feature, and if the thinking is that they would be removed if the feature is removed. Plus it usually simplifies things as it usually minimizes the places where you need to suppress warnings. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 15:21:53 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 15:21:53 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v2] In-Reply-To: References: Message-ID: > Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. > > This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. > > More details in bug, and CSR JDK-8297795 Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: deprecated api doc text ------------- Changes: - all: https://git.openjdk.org/jdk/pull/11430/files - new: https://git.openjdk.org/jdk/pull/11430/files/b82530ad..55c7a188 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=11430&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11430&range=00-01 Stats: 17 lines in 4 files changed: 16 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/11430.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11430/head:pull/11430 PR: https://git.openjdk.org/jdk/pull/11430 From rriggs at openjdk.org Wed Nov 30 15:47:26 2022 From: rriggs at openjdk.org (Roger Riggs) Date: Wed, 30 Nov 2022 15:47:26 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v2] In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 15:21:53 GMT, Kevin Walls wrote: >> Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. >> >> This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. >> >> More details in bug, and CSR JDK-8297795 > > Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: > > deprecated api doc text src/java.management/share/classes/javax/management/loading/MLet.java line 165: > 163: * to load classes that could not be found in the loaded jar files. > 164: * > 165: * @deprecated This API is part of Management Applets (m-lets), which is a legacy feature that allows loading I think `m-let` should be capital M. -> `M-let`. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From alanb at openjdk.org Wed Nov 30 16:11:32 2022 From: alanb at openjdk.org (Alan Bateman) Date: Wed, 30 Nov 2022 16:11:32 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v2] In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 13:50:13 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: >> >> deprecated api doc text > > src/java.management/share/classes/javax/management/loading/MLetObjectInputStream.java line 43: > >> 41: class MLetObjectInputStream extends ObjectInputStream { >> 42: >> 43: @SuppressWarnings("removal") > > Shouldn't `MLetObjectInputStream` be deprecated for removal too? I mean - if MLet was removed - would we need to keep that class? If it were deprecated for removal too then I suspect that there would be no need to suppress the warning here (and below). It's not public so not part of the API, but you may be right that it would reduce the number of places where the warning needs to be suppressed. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 16:44:21 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 16:44:21 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v2] In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 15:45:02 GMT, Roger Riggs wrote: >> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: >> >> deprecated api doc text > > src/java.management/share/classes/javax/management/loading/MLet.java line 165: > >> 163: * to load classes that could not be found in the loaded jar files. >> 164: * >> 165: * @deprecated This API is part of Management Applets (m-lets), which is a legacy feature that allows loading > > I think `m-let` should be capital M. -> `M-let`. JMX_1_4_specification.pdf has it as "m-let". But the API docs often use class names or the MLET tag so don't use the "m-let" form much, if at all. But for a written text, I think it's correct as it is. 8-) ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 16:56:23 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 16:56:23 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v2] In-Reply-To: References: Message-ID: <3FHzBgGrbNsXw_-0AVjsVEu9F7Dozk7MS-iKniSNlwo=.86a55a56-0925-4d66-adff-63ad340d38c3@github.com> On Wed, 30 Nov 2022 16:08:23 GMT, Alan Bateman wrote: >> src/java.management/share/classes/javax/management/loading/MLetObjectInputStream.java line 43: >> >>> 41: class MLetObjectInputStream extends ObjectInputStream { >>> 42: >>> 43: @SuppressWarnings("removal") >> >> Shouldn't `MLetObjectInputStream` be deprecated for removal too? I mean - if MLet was removed - would we need to keep that class? If it were deprecated for removal too then I suspect that there would be no need to suppress the warning here (and below). > > It's not public so not part of the API, but you may be right that it would reduce the number of places where the warning needs to be suppressed. I tested making the class MLetParser itself @Deprecated in the same way, and it still needs a @SuppressWarnings annotation on the parse(url) method, or it produces 3 warnings regarding use of MLetContent. I don't mind adding the deprecation note to these two classes to make it clear that these non-public classes are also on the way out. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 17:02:45 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 17:02:45 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v3] In-Reply-To: References: Message-ID: <57tCMPyMZXEaZS0mD_NQ-H_XBkY2FyPVDtxufVCG--E=.6768ebb8-bfcb-4814-bb98-361cc5700cbb@github.com> > Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. > > This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. > > More details in bug, and CSR JDK-8297795 Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Deprecated annotation on the package-private classes ------------- Changes: - all: https://git.openjdk.org/jdk/pull/11430/files - new: https://git.openjdk.org/jdk/pull/11430/files/55c7a188..8fc74d51 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=11430&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11430&range=01-02 Stats: 2 lines in 2 files changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/11430.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11430/head:pull/11430 PR: https://git.openjdk.org/jdk/pull/11430 From rriggs at openjdk.org Wed Nov 30 17:06:40 2022 From: rriggs at openjdk.org (Roger Riggs) Date: Wed, 30 Nov 2022 17:06:40 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v2] In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 16:41:16 GMT, Kevin Walls wrote: >> src/java.management/share/classes/javax/management/loading/MLet.java line 165: >> >>> 163: * to load classes that could not be found in the loaded jar files. >>> 164: * >>> 165: * @deprecated This API is part of Management Applets (m-lets), which is a legacy feature that allows loading >> >> I think `m-let` should be capital M. -> `M-let`. > > JMX_1_4_specification.pdf has it as "m-let". But the API docs often use class names or the MLET tag so don't use the "m-let" form much, if at all. But for a written text, I think it's correct as it is. 8-) ok, I think M-let is more readable, but fine as is. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 17:02:47 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 17:02:47 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v2] In-Reply-To: References: Message-ID: On Wed, 30 Nov 2022 15:21:53 GMT, Kevin Walls wrote: >> Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. >> >> This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. >> >> More details in bug, and CSR JDK-8297795 > > Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: > > deprecated api doc text Updated with additional Deprecated annotations on two non-public classes which would also be removed. No deprecation tag doc update as there are no public API docs for these. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From dfuchs at openjdk.org Wed Nov 30 17:29:57 2022 From: dfuchs at openjdk.org (Daniel Fuchs) Date: Wed, 30 Nov 2022 17:29:57 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v3] In-Reply-To: <57tCMPyMZXEaZS0mD_NQ-H_XBkY2FyPVDtxufVCG--E=.6768ebb8-bfcb-4814-bb98-361cc5700cbb@github.com> References: <57tCMPyMZXEaZS0mD_NQ-H_XBkY2FyPVDtxufVCG--E=.6768ebb8-bfcb-4814-bb98-361cc5700cbb@github.com> Message-ID: On Wed, 30 Nov 2022 17:02:45 GMT, Kevin Walls wrote: >> Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. >> >> This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. >> >> More details in bug, and CSR JDK-8297795 > > Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: > > Deprecated annotation on the package-private classes src/java.management/share/classes/javax/management/loading/MLetParser.java line 254: > 252: * Parse the document pointed by the URL urlname > 253: */ > 254: @SuppressWarnings({"deprecation", "removal"}) You might have to keep "removal", but I suspect "deprecation" should no longer be necessary, now that this class is deprecated (though I might be wrong). ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 20:31:19 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 20:31:19 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v3] In-Reply-To: References: <57tCMPyMZXEaZS0mD_NQ-H_XBkY2FyPVDtxufVCG--E=.6768ebb8-bfcb-4814-bb98-361cc5700cbb@github.com> Message-ID: On Wed, 30 Nov 2022 17:27:05 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: >> >> Deprecated annotation on the package-private classes > > src/java.management/share/classes/javax/management/loading/MLetParser.java line 254: > >> 252: * Parse the document pointed by the URL urlname >> 253: */ >> 254: @SuppressWarnings({"deprecation", "removal"}) > > You might have to keep "removal", but I suspect "deprecation" should no longer be necessary, now that this class is deprecated (though I might be wrong). OK this took me a few rebuilds to figure out: Before these changes, MLetParser needs the deprecation suppressions, for URL. If you remove that suppression, and you get warnings. When I make MLetParser itself deprecated for removal, it no longer needs the deprecation suppression for URL, but does need suppression of e.g. MLet which is tagged for removal. i.e. in a class marked for removal, we warn you for using other classes marked for removal, but not for using others only deprecated (as presumably the removal will happen before the simply deprecated class is removed). So yes we can remove "deprecation" from that line, and only have "removal". It's fine either way. I can take it out as you've mentioned it. ------------- PR: https://git.openjdk.org/jdk/pull/11430 From kevinw at openjdk.org Wed Nov 30 20:37:38 2022 From: kevinw at openjdk.org (Kevin Walls) Date: Wed, 30 Nov 2022 20:37:38 GMT Subject: jmx-dev RFR: 8297794: Deprecate JMX Management Applets for Removal [v4] In-Reply-To: References: Message-ID: > Deprecate the Java Management Extension (JMX) Management Applet (m-let) feature for removal. > > This deprecation will have no impact on users of other JMX features, the JDK's built-in instrumentation, or any of the observability tools. > > More details in bug, and CSR JDK-8297795 Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: unnecessary Suppression nit ------------- Changes: - all: https://git.openjdk.org/jdk/pull/11430/files - new: https://git.openjdk.org/jdk/pull/11430/files/8fc74d51..eab7dc65 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=11430&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11430&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/11430.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11430/head:pull/11430 PR: https://git.openjdk.org/jdk/pull/11430