Not sure who else this affects, but it appears that all the whizbang features of the new lobby are not backwards compatible with < 10.6 MAC users. Can 1.2.5 lobby reopen until this is addressed? If so thanks a million, if not my tournament opponents thank you.
InetAddress address = InetAddress.getLocalHost();
NetworkInterface localHostNI = NetworkInterface.getByInetAddress(address);
if (localHostNI != null)
byte rawMac = localHostNI.getHardwareAddress(); //This line caused error
String mac = convertMacBytesToString(rawMac);
catch (Exception ex) //And it wasn't caught here, because NoSuchMethodError is not an exception, it's an Error. Both Exception and Error classes are extensions of the Throwable class. (Found this out online)
So to fix this issue, we just have to change this line:
catch (Exception ex)
catch (Throwable ex)
So then, if someone has an older version of java, it will simply skip that code block and try to use one of the other three mac-retrieval methods. (Which get hashed, btw)
maybe we should just change them all to throwable just in case?
i mean, is there any chance that something will go wrong in one of those code blocks on an older machine that could otherwise run the rest of triplea just fine?
if the only difference is that Throwable doesn't stop the program, and Exception stops the program, then I think throwable would be better.
If the person can't run any of those mac getter codes, then they will not be able to join anyway, so in that way they will get stopped with a better message. (and the throwable still prints the original error to the consol, correct?)