mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
TEMP disable use of "sun.misc.VMSupport" (re-instate with module add-exports directive)
This commit is contained in:
parent
579a95b849
commit
b8fb617ee1
@ -32,7 +32,7 @@ import net.corda.tools.shell.InteractiveShell
|
|||||||
import org.fusesource.jansi.Ansi
|
import org.fusesource.jansi.Ansi
|
||||||
import org.slf4j.bridge.SLF4JBridgeHandler
|
import org.slf4j.bridge.SLF4JBridgeHandler
|
||||||
import picocli.CommandLine.Mixin
|
import picocli.CommandLine.Mixin
|
||||||
import sun.misc.VMSupport
|
//import sun.misc.VMSupport
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.io.RandomAccessFile
|
import java.io.RandomAccessFile
|
||||||
import java.lang.management.ManagementFactory
|
import java.lang.management.ManagementFactory
|
||||||
@ -251,10 +251,10 @@ open class NodeStartup : NodeStartupLogging {
|
|||||||
logger.info("VM ${info.vmName} ${info.vmVendor} ${info.vmVersion}")
|
logger.info("VM ${info.vmName} ${info.vmVendor} ${info.vmVersion}")
|
||||||
logger.info("Machine: ${lookupMachineNameAndMaybeWarn()}")
|
logger.info("Machine: ${lookupMachineNameAndMaybeWarn()}")
|
||||||
logger.info("Working Directory: ${cmdLineOptions.baseDirectory}")
|
logger.info("Working Directory: ${cmdLineOptions.baseDirectory}")
|
||||||
val agentProperties = VMSupport.getAgentProperties()
|
// val agentProperties = VMSupport.getAgentProperties()
|
||||||
if (agentProperties.containsKey("sun.jdwp.listenerAddress")) {
|
// if (agentProperties.containsKey("sun.jdwp.listenerAddress")) {
|
||||||
logger.info("Debug port: ${agentProperties.getProperty("sun.jdwp.listenerAddress")}")
|
// logger.info("Debug port: ${agentProperties.getProperty("sun.jdwp.listenerAddress")}")
|
||||||
}
|
// }
|
||||||
var nodeStartedMessage = "Starting as node on ${conf.p2pAddress}"
|
var nodeStartedMessage = "Starting as node on ${conf.p2pAddress}"
|
||||||
if (conf.extraNetworkMapKeys.isNotEmpty()) {
|
if (conf.extraNetworkMapKeys.isNotEmpty()) {
|
||||||
nodeStartedMessage = "$nodeStartedMessage with additional Network Map keys ${conf.extraNetworkMapKeys.joinToString(prefix = "[", postfix = "]", separator = ", ")}"
|
nodeStartedMessage = "$nodeStartedMessage with additional Network Map keys ${conf.extraNetworkMapKeys.joinToString(prefix = "[", postfix = "]", separator = ", ")}"
|
||||||
|
Loading…
Reference in New Issue
Block a user