java - How can I work around this JRE bug in getNetworkPrefixLength()? -


there appears known bug in jre implementation:

but how can fix without updating jre/jdk? need broadcast address, , use getbroadcast() this, returns 0.0.0.0 (because getnetworkprefixlength() returns -1, although real network mask 24).


Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -