Boolean vs boolean
807589Aug 21 2008 — edited Aug 21 2008I developed an application, tested it on my machine, the the test folks passed it on the test machine, then there was a failure in production. I have a function that takes an object and a Boolean value.
so public Vector<SessionReport> myFunc(Object obj, Boolean bo){
}
I called this function via Vector<SessionReport> vsr = myFunc(obj, true);
this is what was failing on the production machine. I had to change it to.
Vector<SessionReport> vsr = myFunc(obj, Boolean.TRUE);
Although this was sloppy programming on my part, is there a setting or a java version difference that would cause this to work on my machine and fail in the production environment? I really dont need .war files passing thorugh testing phase then failing on the production server.
Im using Eclipse with JDK 1.5.0_16 with the complier compliance level set to 5.0, deploying to JBOSS v4.2/
We also had an issue in .jsp files with
Vector<SessionReport> vsr = myFunc(obj, Boolean.TRUE); failing on production but not test or my development machine
Vector vsr = myFunc(obj, Boolean.TRUE); succeeding on all.
Thanks,
Bart