[jboss-jira] [JBoss JIRA] (WFLY-1537) getHardwareAddress() return different result on the AS 7.1.1
David Lloyd (JIRA)
jira-events at lists.jboss.org
Fri Sep 20 16:49:03 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Lloyd updated WFLY-1537:
------------------------------
Description:
{code:java}
Enumeration e1 = NetworkInterface.getNetworkInterfaces();
for (e1.hasMoreElements();) {
NetworkInterface NIC = (NetworkInterface) e1.nextElement();
byte buf[] = NIC.getHardwareAddress();
...
}
{code}
On JBOSS AS 4.2.3,buf[] is not null in some loops,but is all null on JBOSS AS 7.1.1,so can not obtain the MAC address.
was:
Enumeration e1 = NetworkInterface.getNetworkInterfaces();
for (e1.hasMoreElements();) {
NetworkInterface NIC = (NetworkInterface) e1.nextElement();
byte buf[] = NIC.getHardwareAddress();
...
}
On JBOSS AS 4.2.3,buf[] is not null in some loops,but is all null on JBOSS AS 7.1.1,so can not obtain the MAC address.
Edited for readability
> getHardwareAddress() return different result on the AS 7.1.1
> ------------------------------------------------------------
>
> Key: WFLY-1537
> URL: https://issues.jboss.org/browse/WFLY-1537
> Project: WildFly
> Issue Type: Bug
> Components: EE
> Environment: Windows 7 64bit JBOSS AS 7.1.1 Final JDK1.6.0_45
> Reporter: eob free
> Assignee: David Lloyd
>
> {code:java}
> Enumeration e1 = NetworkInterface.getNetworkInterfaces();
> for (e1.hasMoreElements();) {
> NetworkInterface NIC = (NetworkInterface) e1.nextElement();
> byte buf[] = NIC.getHardwareAddress();
> ...
> }
> {code}
> On JBOSS AS 4.2.3,buf[] is not null in some loops,but is all null on JBOSS AS 7.1.1,so can not obtain the MAC address.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list