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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -