JDK-2190487 : api/java_net/NetworkInterface/index.html#misc: getDisplayName() returned non null but empty String
  • Type: Backport
  • Backport of: JDK-6706251
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2010-03-19
  • Updated: 2012-03-22
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u11Fixed 7 b91Fixed
Comments
EVALUATION JDK7 changeset: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/1672f0212f02
13-04-2010

SUGGESTED FIX * A display name is a human readable String describing the network * device. * - * @return the display name of this network interface, - * or null if no display name is available. + * @return a non-empty string representing the display name of this network + * interface, or null if no display name is available. */ public String getDisplayName() { - return displayName; + /* strict TCK conformance */ + return "".equals(displayName) ? null : displayName; } Webrev: http://cr.openjdk.java.net/~chegar/6706251/webrev.00/webrev/
22-03-2010

EVALUATION see parent CR 6706251.
19-03-2010