[jax-rs-spec users] [jsr339-experts] Re: Extending MultivaluedMap interface?

From: Bill Burke <>
Date: Mon, 18 Jun 2012 10:26:03 -0400

Adding methods doesn't break backward compatibility, so I don't see a


On 6/15/12 7:16 PM, Marek Potociar wrote:
> Hello experts,
> I would like to introduce a collection of useful new methods into the multivalued map interface (those methods are readily available on the AbstractMultivaluedMap implementation class in the API and it's a pity not to be able to use them via the MultivaluedMap interface):
> void addAll(K key, V... newValues);
> void addAll(K key, List<V> valueList);
> void addFirst(K key, V value);
> The problem is that this is a potentially BW incompatible change. While I assume that mostly JAX-RS implementation providers will be affected, which is OK, I'm not sure if there's anyone out there among users providing their own implementations of the interface. Do you know of anyone? Is it a bad idea to add those methods? Should I introduce another sub-interface (e.g. Multimap) instead?
> (Note that I've added the methods to the MultivaluedMap interface already just as a preliminary trial to see if I receive any rants from community and I am ready to remove the methods if I receive any pushback either from you or from anyone in the community.)
> Looking forward to your feedback,
> Marek

Bill Burke
JBoss, a division of Red Hat