jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Replacing IllegalStateException in UriBuilder API with NPE?

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Mon, 11 Jun 2012 11:31:58 +0100

Hi
On 05/06/12 16:59, Bill Burke wrote:
> Isn't there TCK tests that test that ISE is thrown when null is passed in?
>

In some cases 'null' is valid (resetting some of the previous state), so
it would be good to get some further clarifications on the issue

NPE is associated with a code bug to me, I often see people saying NPE
is always a bug in the code, so I wonder if such a replacement is really
necessary

Cheers, Sergey


> On 6/5/12 11:05 AM, Marek Potociar wrote:
>> Hello Experts,
>> please provide your feedback: http://java.net/jira/browse/JAX_RS_SPEC-131
>>
>> Thanks,
>> Marek
>