RFR 8142398: IllegalAccessException Class sun.usagetracker.UsageTrackerClient$4 (module java.base) can not access a member of class java.lang.management.ManagementFactory (module java.management) (original) (raw)
Jaroslav Bachorik jaroslav.bachorik at oracle.com
Mon Dec 14 16:55:42 UTC 2015
- Previous message (by thread): RFR: JDK-8142907 Integration of minor fixes from the build-infra project
- Next message (by thread): RFR 8142398: IllegalAccessException Class sun.usagetracker.UsageTrackerClient$4 (module java.base) can not access a member of class java.lang.management.ManagementFactory (module java.management)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Please, review the following change
Issue : https://bugs.openjdk.java.net/browse/JDK-8138677 Webrev: http://cr.openjdk.java.net/~jbachorik/8138677/webrev.00
The problem is that the class UsageTrackerClient is accessing RuntimeMXBean.getInputArguments() method via reflection to avoid static dependency. However, with functional module boundaries this fails.
Since the functionality provided by RuntimeMXBean.getInputArguments() is not, in fact, specific to the management subsystem, it makes sense to move it out of jmm.h to jvm.h
Full suite of SVC tests was run against this change successfully on all platforms.
Thanks,
-JB-
- Previous message (by thread): RFR: JDK-8142907 Integration of minor fixes from the build-infra project
- Next message (by thread): RFR 8142398: IllegalAccessException Class sun.usagetracker.UsageTrackerClient$4 (module java.base) can not access a member of class java.lang.management.ManagementFactory (module java.management)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]