jakartaee/rest

TCK Challenge: ee.jakarta.tck.ws.rs.ee.rs.core.headers.JAXRSClientIT.contentLanguageTest uses the wrong Variant arguments

Closed this issue · 0 comments

In the ee.jakarta.tck.ws.rs.ee.rs.core.headers.JAXRSClientIT.contentLanguageTest when the Variant is constructed the language "en-US" is passed. However, in the JavaDoc for the argument it states:

@param language the language of the variant (two-letter ISO-639 code); may be {@code null}.

The test should be using new Variant(MediaType.WILDCARD_TYPE, "en", "US", null); instead of new Variant(MediaType.WILDCARD_TYPE, "en-US", null);.

This was found in RESTEasy with a change to use language tags for locales, for reference resteasy/resteasy#4054.