I guess they needed to support things other than just platforms with BSD sockets
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.
_________________________
Bitt Faulk