Continuing from other related JIRA.
Proposal: javax.ws.rs.core.Form may be marginally improved to have AbstractMultivaluedMap instance accepting LinkedHashMap store used by default.
This is absolutely safe, but also makes it a bit easier to test and read the form output. For example, some specifications show how a form output may look like and it is really handy to get the order of the insertion preserved on the output, just to 'feel good' about the client producing exactly the same output.
For a simple example, new Form().param("user", "barry").param("password", "1234") will currently produce:
as opposed to a 'typical'
Indeed, one can do
but "new Form()" with the order of insertion preserved and "new Form(new MultivaluedHashMap())" for someone who somehow wants a random output is simpler option
very minor issue but worth addressing IMHO