No, it wouldn't help with regular int operations. It would however help with toString() (just returning an empty String), and generally avoid NullPointerExceptions in cases where null objects specificially don't need special handling. The application we're thinking of refactoring consists of...
Hm, thanks :-/ A pity, since in a database application like ours it actually makes a difference whether it's a neutral element or actually not defined...
I think we'll revert to using proxies then anyway, at the cost of losing autoboxing / unboxing [neutral]
www.haslo.ch
It seems you can't apply the Null Object Design Pattern to uses of the Integer wrapper class, because it's final...
Any solutions that let us avoid the dreaded object==null test (and the resulting special handling whenever we need a toString() or something) which don't use a Proxy class...
I wrote another mail to the company and will see what they say (I also pointed out this thread here). Thanks for ruling out the RAM possibility, they will be glad to hear you support their stance here.
I looked what kind of HD I have, the BIOS told me it's a IC25N040ATMR04, which would be a...
I have a follow-up question, too:
Can you imagine that such a non-zero-filled hard drive could cause these STOP codes in a WinXP setup, even before I even can select the hard drive and partition (or choose to format it)?
I could imagine the WinXP setup accessing the hard drive before that, of...
Thanks a lot for your answers...
technome:
That's pretty much what I thought (the BS and nightmare part), but I called them one or two times and since they're a really small firm spoke with the people in charge, and they actually sound like they sort of know what they're doing.
Reversing the...
I have bought a notebook, with a catch. I had a notebook before, and they re-used my old hard drive in the new device, exchanging pretty much everything else.
When I first got, I tried to install my Windows XP Update, and it started to BSOD all the time. The STOP codes were usually one of the...
It depends on the time frame. If by "future" you mean "another 200-300 years", then you're probably right. When I said Python, I meant another 5-10 years, because beyond that, we can't make any reasonable predictions anyway, IMHO. But with natural language you might be pretty close.
(By the...
What we're doing in a project I'm working on right now is, we have two special tables in our database, one being "tables" and one being "fields", and those two tables hold all the metadata we need. But that is something we had planned from the very start.
You're planning to develop in Oracle...
Maybe if you try with one of these? The JDOM site works flawlessly for me since the time you first posted, so most probably, it will also work with these proxies...
Where are you from? I ask because your IP range may somehow be banned... How does the JDOM site "not work"? And then, the .jar and...
No, but the JRE is, and you said you'd want to download the JRE...
The default XML parsing framework is JAXP. However, you can use JDOM if you wish, nothing prevents you from doing so.
The source code from JAXP is in the SDK source distribution, but if you want the JDOM source you'll have to...
...and of course I did forget something really important. Make that (for the split src and bin paths I suggested)...
C:\john\java>javac -sourcepath src src/myPackage/*.java -d bin
C:\john\java>java -classpath bin myPackage.HelloWorld
...thus selecting the output path as the current path as...
Yes, same thing. If you'd have no package defined, it would work like this, but packages are the way to go, so do the following:
C:\john\java>javac myPackage/*.java
C:\john\java>java myPackage.HelloWorld
I'd also advise getting a GUI like Eclipse (altough others would not), it makes things...
replace the c:\John\java\myPackage by c:\John\java - the myPackage indicates that the class is in the package myPackage, which is the same as the subdirectory myPackage in any of your classpath's directories. Hm, that sounds a lot more complicated than it actually is...
haslo@haslo.ch -...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.