JConsole attempts unnecessary classloading by using Class.forName when creating 
the graphical interface, including the components for MBeans.

JConosole does not implement MBean operations on types other than the standard 
types.  It already has a set of types which it can check against, so can check 
if a type is in "editableTypes" before resolving and returning a Class.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8383639: JConsole unnecessary classloading for MBean types

Changes: https://git.openjdk.org/jdk/pull/30999/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30999&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8383639
  Stats: 6 lines in 1 file changed: 3 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/30999.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30999/head:pull/30999

PR: https://git.openjdk.org/jdk/pull/30999

Reply via email to