RFR 8014506: Test for Jdp (Java Discovery Protocol) feature

Alex Schenkman alex.schenkman at oracle.com
Thu Jul 4 05:26:57 PDT 2013


Thanks Staffan for your comments.

The indentation is corrected in all files, sorry about that.

About the racing condition in PortFinder.java, you are absolutely right, 
there is no warranty that this port will be free.
I do not know a better way to do this. Any suggestions?
On the other hand, even if this fails every now and then, it will work 
most of the times and it is better than what we have today.
I have added better comments in PortFinder to reflect the problem.

The new webrev is here [1], at the same address than before.

Thanks!

[1] http://cr.openjdk.java.net/~dsamersoff/8014506/webrev.01/ 
<http://cr.openjdk.java.net/%7Edsamersoff/8014506/webrev.01/>

PS:
PortFinder.java, line 37:
There is an extra <p/> tag that should be removed.



On 2013-06-26 13:54, Staffan Larsen wrote:
> test/lib/testlibrary/jdk/testlibrary/PortFinder.java:
>
> - This looks racy to me. There is no guarantee that the port will still be available after the call to close().
> - Missing copyright notice.
> - In comment "on of them" -> "one of them"
>
> test/sun/management/jdp/ClientConnection.java:
>
> - broken indentation
> - inconsistent spacing in method calls. Sometime "joinGroup(address);" and sometimes "setSoTimeout( msTimeOut );". Should be without spaces.
>
> test/sun/management/jdp/DynamicLauncher.java:
>
> - type: binded -> bound
> - inconsistent spacing in method calls
>
> test/sun/management/jdp/JdpOffTest.java
>
> - broken indentation
>
> test/sun/management/jdp/JdpTestUtil.java
>
> - broken indentation
>
>
> I stopped reading here. Can we get these basic things fixed before the next review round, please?
>
> /Staffan
>
>
> On 26 jun 2013, at 12:21, Dmitry Samersoff<Dmitry.Samersoff at oracle.com>  wrote:
>
>> Nils,
>>
>> I'm sponsoring this push but don't see any review replies in this thread.
>>
>> Webrev refreshed against latest tl is here:
>>
>> http://cr.openjdk.java.net/~dsamersoff/JDK-8014506/webrev.01/
>>
>> -Dmitry
>>
>>
>> On 2013-05-27 12:25, Alex Schenkman wrote:
>>> Please review these tests for the Jdp protocol.
>>>
>>> There are three cases:
>>> 1) Jdp is off.
>>> 2) Jdp is on and using default address and port.
>>> 3) Jdp is on using custom address and port.
>>>
>>> Tests:http://cr.openjdk.java.net/~nloodin/8014506/webrev.00/
>>> <http://cr.openjdk.java.net/%7Enloodin/8014506/webrev.00/>
>>> Jdp feature enhancement:https://jbs.oracle.com/bugs/browse/JDK-8002048
>>> JDK CCC:http://ccc.us.oracle.com/8002048
>>>
>>>
>>> Thanks in advance!
>>>
>>> -- 
>>> Alex Schenkman
>>> Java VM SQE Stockholm
>>>
>> -- 
>> Dmitry Samersoff
>> Oracle Java development team, Saint Petersburg, Russia
>> * I would love to change the world, but they won't give me the sources.

-- 
Alex Schenkman
Java VM SQE Stockholm

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20130704/608832a1/attachment.html 


More information about the serviceability-dev mailing list