< prev index next >

src/share/classes/com/sun/tools/jdi/GenericListeningConnector.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 107,118 **** TransportService.ListenKey listener = listenMap.get(args); if (listener != null) { throw new IllegalConnectorArgumentsException("Already listening", new ArrayList<String>(args.keySet())); } - listener = transportService.startListening(address); listenMap.put(args, listener); return listener.address(); } public String --- 107,118 ---- TransportService.ListenKey listener = listenMap.get(args); if (listener != null) { throw new IllegalConnectorArgumentsException("Already listening", new ArrayList<String>(args.keySet())); } listener = transportService.startListening(address); + updateArgumentMapIfRequired(args, listener); listenMap.put(args, listener); return listener.address(); } public String
*** 178,183 **** --- 178,187 ---- public Transport transport() { return transport; } + protected void updateArgumentMapIfRequired( + Map<String, ? extends Connector.Argument> args, TransportService.ListenKey listener) { + } + }
< prev index next >