Review request: 7120875 fix macos ipv6 issue and update multiple test scripts

Michael McMahon michael.x.mcmahon at oracle.com
Thu Dec 22 03:46:57 PST 2011


On 19/12/11 14:11, Alan Bateman wrote:
> On 16/12/2011 10:36, Michael McMahon wrote:
>> Updated webrev after Alan's comments.
>>
>> http://cr.openjdk.java.net/~michaelm/7120875/webrev.2/
> This is better but would be nice if we could avoid special casing 
> MacOSX in java.net.MulticastSocket. Given that we may have to choose 
> the default interface on other platforms when what would you think of 
> MulticastSocket checking for default interface on all platforms? 
> (could return null on platforms where it's not required). Same thing 
> for java.net.PlainSocketImpl.
>
I've updated this to localize the changes to NetworkInterface (and the 
new class DefaultInterface).
So, there's no change to the socket impl java code
The new native code implementation is in net_util_md.c also, but called 
from Plain*SocketImpl.c
> The changes to the tests mostly look okay to me.
>
> There are a couple of tests where additional debugging messages have 
> been added, I don't know if they are meant to be included, examples:
> test/java/net/DatagramSocket/B6411513.java
> java/net/DatagramSocket/SetDatagramSocketImplFactory/ADatagramSocket.java. 
>
>
I've removed the debug outputs above. If all the above is ok, I'd like 
to push this change
and address remaining test case issues in another changeset.

New webrev @ http://cr.openjdk.java.net/~michaelm/7120875/webrev.4/


Thanks
Michael

> test/java/net/DatagramSocket/Send12k.java - now the send size is a 
> local then it might be better to name is "size" rather than SEND_SIZE.
>
> There are a couple of tests the Darwin case has been combined with the 
> Linux case, examples:
>
> test/java/net/URLClassLoader/B5077773.sh
> test/java/net/DatagramSocket/SetDatagramSocketImplFactory/ADatagramSocket.sh 
>
> test/java/net/URLConnection/6212146/test.sh
>
> No big deal but might be worth combining Linux too as further 
> maintainers might wonder why Linux is separate to SunOS and Darwin.
>
> I exchanged a few mails with Kurchi about java tests as I think there 
> are a couple of tests that need to be updated, examples:
>
> test/java/net/ipv6tests/Tests.java
> test/java/net/DatagramSocket/SendDatagramToBadAddress.java
> test/java/util/zip/ZipFile/ManyZipFiles.java
> test/java/lang/ProcessBuilder/Basic.java
>
> No problem if they are skipped in this round and I was just sending a 
> reminder that java tests may need to be updated too (even if they pass).
>
> -Alan.
>
>




More information about the net-dev mailing list