This content has been marked as final.
Show 3 replies
-
1. Re: assertions in JBM
trustin Jun 12, 2008 4:47 AM (in response to ataylor)I am up for throwing NPE rather than 'assert abc != null' because it is often pretty difficult what variable caused NPE from the stack trace when assertion is disabled. It's disabled by default AFAIK.
-
2. Re: assertions in JBM
timfox Jun 12, 2008 4:49 AM (in response to ataylor)+1
I favour throwing NPE, IllegalArgumentException or IllegalStateException depending on the particular case. -
3. Re: assertions in JBM
ataylor Jun 12, 2008 4:50 AM (in response to ataylor)It's disabled by default AFAIK.
yes, you're correct.