You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/08/17 05:17:18 UTC
[jira] Assigned: (HARMONY-1206) [classlib][luni] Remove a never
used variable "MulticastSocketTest" in
tests.api.java.net.MulticastSocketTest.
[ http://issues.apache.org/jira/browse/HARMONY-1206?page=all ]
Paulex Yang reassigned HARMONY-1206:
------------------------------------
Assignee: Paulex Yang
> [classlib][luni] Remove a never used variable "MulticastSocketTest" in tests.api.java.net.MulticastSocketTest.
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1206
> URL: http://issues.apache.org/jira/browse/HARMONY-1206
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Priority: Minor
> Attachments: Harmony-1206.diff
>
>
> Remove class variable "MulticastSocketTest" in tests.api.java.net.MulticastSocketTest, which is never used in test and may cause unnecessary failures.
> Consider following code in setUp():
> if (addresses != null) {
> try {
> sameAsNetworkInterface1 = NetworkInterface.getByInetAddress((InetAddress) addresses.nextElement());
> } catch (SocketException e) {
> }
> }
> Notice that addresses.nextElement() may throw exception if addresses is empty (but not null).
> I'll upload a patch to remove these unnecessary code soon.
> Thanks!
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira