JDK-8151378 : Make the dependency from jdk.jcmd to jdk.hotspot.agent platform dependent
  • Type: Bug
  • Component: core-svc
  • Affected Version: 9-repo-jigsaw
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-07
  • Updated: 2016-03-09
  • Resolved: 2016-03-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9-repo-jigsawFixed
Related Reports
Relates :  
Description
Currently, jcmd has a hard dependency on the SA:

$cat jdk/src/jdk.jcmd/share/classes/module-info.java
module jdk.jcmd {
    requires jdk.attach;
    requires jdk.jvmstat;
    requires jdk.hotspot.agent; // until JDK-8059035 is complete
}

This will break every platform which does not implement the SA.
Comments
The dependency has been eliminated in jake by converting to use service interface: http://hg.openjdk.java.net/jigsaw/jake/jdk/rev/0080ef862071 http://hg.openjdk.java.net/jigsaw/jake/hotspot/rev/f2d8674642fe
09-03-2016