On 04/03/2016 19:08, Volker Simonis wrote:
Hi Alan, Dmitry,

I've tried today to build the jake repository on AIX. Unfortunately
that doesn't work because we now have a hard dependency on SA which is
required by jcmd:

$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.

There already exists a bug for this issue:
8059035: Break the (implicit) dependency from jdk.jcmd to jdk.hotspot.agent
https://bugs.openjdk.java.net/browse/JDK-8059035

Is there any chance that this will be resolved soon?
Or is there an easy way to disable this dependency on AIX?

I don't know if Dmitry has short term plans to address that one but thing we could do is drop the "requires jdk.hotspot.agent" and move it:

  src/jdk.jcmd/$OS/classes/module-info.java.extra

where $OS is linux, solaris or the other platforms that SA is supported on.

At build time then the .extra files will augment the module-info.java.

-Alan.

Reply via email to