Adding values to enum java.net.StandardProtocolFamily

Florian Weimer fweimer at redhat.com
Thu Feb 13 04:54:16 PST 2014


Can we add further enumeration values to 
java.net.StandardProtocolFamily?  The spec does not say so, unlike 
javax.lang.model.SourceVersion, and the code in the JDK expects a binary 
flag, so I think the answer is "no".

Does this mean the expected way to add support for further protocol 
families would be to create a separate implementation of 
java.net.ProtocolFamily?

-- 
Florian Weimer / Red Hat Product Security Team


More information about the net-dev mailing list