puniverse / capsule

Dead-Simple Packaging and Deployment for JVM Apps
http://capsule.io
Eclipse Public License 1.0
1.15k stars 100 forks source link

Capsule depends on JDK internal APIs that have been removed from JDK9 #115

Closed chrisr3 closed 7 years ago

chrisr3 commented 7 years ago

With JDK9 ea+160:

   Capsule   -> com.sun.jmx.mbeanserver.JmxMBeanServer  JDK internal API (java.management)
   Capsule   -> sun.management.Agent                    JDK internal API (JDK removed internal API)
   Capsule   -> sun.misc.VMSupport                      JDK internal API (JDK removed internal API)

Both of these sun. APIs seem to relate to JMX (capsule/src/main/java/Capsule.java):

final Properties agentProps = sun.misc.VMSupport.getAgentProperties();
if (agentProps.get(LOCAL_CONNECTOR_ADDRESS_PROP) == null) {
    log(LOG_VERBOSE, "Starting management agent");
    sun.management.Agent.agentmain(null); // starts a JMXConnectorServer that does not prevent the app from shutting down
}
mikehearn commented 7 years ago

I think this is a dupe of #110

pron commented 7 years ago

Yep. Duplicate.