I realize that you're saying this with the second part of your post, but isn't Java supposed to hide platform differences? And, in those cases where the netmask is unobtainable, just have it throw a specific exception. Not too difficult.


It is hiding them, it's always lying to you

Yeah, that's sort of unfortunate that they're going about hiding them the wrong way.