RFR: JDK-8184770: JDWP support for IPv6

Alex Menkov alexey.menkov at oracle.com
Mon Apr 1 18:27:04 UTC 2019


On 04/01/2019 05:02, Chris Hegarty wrote:
> 
> 
> On 01/04/2019 12:50, Chris Hegarty wrote:
>> ...
>> Specifically on SocketTransportService.java. What Arthur has
>> proposed is better ( changing to lastIndexOf alone is not
>> sufficient ). Or is your assumption that the IPv6 literal is
>> not enclosed in square brackets?
> 
> More specifically, what syntax are you proposing to pass IPv6
> addresses from the command line?
> 

For JDI connectors (SocketTransportService.java) there are 2 separate 
connector arguments: "localAddress" and "port".
For JDWP agent (socketTransport.c) arguments are provided as a single 
command line argument:
java 
-agentlib:jdwp=transport=dt_socket,server=y,address=<address>:<port> MyApp

--alex

> -Chris


More information about the serviceability-dev mailing list