From b8fb617ee1deb76e801522cd1b742cfdf907a951 Mon Sep 17 00:00:00 2001 From: josecoll Date: Tue, 9 Apr 2019 13:39:27 +0100 Subject: [PATCH] TEMP disable use of "sun.misc.VMSupport" (re-instate with module add-exports directive) --- .../main/kotlin/net/corda/node/internal/NodeStartup.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/internal/NodeStartup.kt b/node/src/main/kotlin/net/corda/node/internal/NodeStartup.kt index 4b0e989d8f..1ed5258df9 100644 --- a/node/src/main/kotlin/net/corda/node/internal/NodeStartup.kt +++ b/node/src/main/kotlin/net/corda/node/internal/NodeStartup.kt @@ -32,7 +32,7 @@ import net.corda.tools.shell.InteractiveShell import org.fusesource.jansi.Ansi import org.slf4j.bridge.SLF4JBridgeHandler import picocli.CommandLine.Mixin -import sun.misc.VMSupport +//import sun.misc.VMSupport import java.io.IOException import java.io.RandomAccessFile import java.lang.management.ManagementFactory @@ -251,10 +251,10 @@ open class NodeStartup : NodeStartupLogging { logger.info("VM ${info.vmName} ${info.vmVendor} ${info.vmVersion}") logger.info("Machine: ${lookupMachineNameAndMaybeWarn()}") logger.info("Working Directory: ${cmdLineOptions.baseDirectory}") - val agentProperties = VMSupport.getAgentProperties() - if (agentProperties.containsKey("sun.jdwp.listenerAddress")) { - logger.info("Debug port: ${agentProperties.getProperty("sun.jdwp.listenerAddress")}") - } +// val agentProperties = VMSupport.getAgentProperties() +// if (agentProperties.containsKey("sun.jdwp.listenerAddress")) { +// logger.info("Debug port: ${agentProperties.getProperty("sun.jdwp.listenerAddress")}") +// } var nodeStartedMessage = "Starting as node on ${conf.p2pAddress}" if (conf.extraNetworkMapKeys.isNotEmpty()) { nodeStartedMessage = "$nodeStartedMessage with additional Network Map keys ${conf.extraNetworkMapKeys.joinToString(prefix = "[", postfix = "]", separator = ", ")}"