... I agree - I'd rather keep the NPE as a 'marker' exception thrown by the JVM to indicate an unexpected FUBAR. I also tend to agree with Zorlac with creating...
Hi Guys, Can some one give me some insight on how to establish an intranet application. - What is the best approach - Can I install it in Windows 2000 server -...
... In Ruby, nil is a singleton object of class NilClass (of which there's only one instance) and that's the default value for uninitialized references. The...
Depending on what features you require, you can leverage on some open source projects out there. Look into some CMS and Wiki projects. Take a look at Apache ...
you got me there :p it's more of pushing the exception or whatever behavior we want to happen to the parameter being passed instead of the method reacting to...
IMHO, NPE is fine because it's not really an "illegal argument" per se if you pass in an uninitialized object of the correct type. (What if you didn't know it...
Our department want to gather some info if incase we move in to intranet application. Apache lenya is more on XML can it connect to Database and can it call...
Also agree that throwing NPE is fine. After all, the JDK libs throw it around quite liberally. But this largely comes down to the person's preference;...
I also think throwing NPE is fine; I consider it as "following standards" because it mimics the behavior of the standard APIs. ... From: Miguel Paraz...
... This violates the keep-your-class-hierarchy-simple principle. Does this new class justify its existence? I read about this principle somewhere, but I don't...
Regarding null parameter detection... Do you guys know @Nullable/@NotNull annotations introduced in IDEA a while ago? I guess there should be something similar...
There's an on going JSR for the @Nonnull annotation and other similar annotations. JSR-305 provides annotations that can assist defect detection tools such as...
... Like, say, JSR 303 - bean validation through annotations? Annotations hell, here we come (and I used to be a big fan of them): @Entity @Table(name =...
I'm basically against that JSR ;-) I do not think that pre-condition/post-condition should be done via the annotations mechanism. Talking back to the @Nullable...
Hi, Is there anybody who have a voucher for java certification (SCJP) and want to sell it. Please pm me or email me. Thank you. See what your future holds -...
Question... Why do you need to check if the argument of method() is null? You're also going get a null pointer just the same if you use the object reference if...
Well I think is they are aiming for early detection of Null parameter.. maybe they are avoiding doing several logics to be executed when the parameter is...
imho, the key part is the message that you would include in the NPE. Nothing is more frustrating than to see an NPE in libraries that doesn't say which object...
Hi, all! Orange & Bronze Software Labs is still in need of Architects, Senior Software Engineers, and Mid-Level Software Engineers. We have exciting projects,...
It can be useful to detect at object creation time when you store in a field a non-expected null value as the NPE is more likely to occur much later when you...
Hi Jake, As far as I know, most LiveCD's now have automount (tried Fedora9, BackTrack3), so it should not be an issue. I agree with sonnyG that small distros...
Yup, re the LiveCDs, can't think of any except Knoppix 5.3 (not sure 'bout the true Java IDE though, probably JDEE, ViM, Joe, etc.). Your option of configuring...
Thank to everyone who replied to my e-mail. As for what happened to my live Java CD: 1. I tried VirtualBox--pretty impressive for me (it can be my MS VirtualPC...
Hello group... Wow. Great ideas you got there. However, I have to agree with Melvin on this. I think there is a reason why a NullPointerException (aka NPE) is ...
Bob, Well you are right that it really depends .. but what do you think about this piece of code.. public Object doStuff(Object theParameter) { Object...