[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Problems with inverting results from boolean methods
|
Title: Problems with inverting results from boolean methods
I ran across a situation where an application compiled with iajc 1.5.0 does not return the expected results when running under Jrockit-1.4.2_08.
Example:
public boolean hasChildren() {
return ! CollectionUtils.isEmpty(children);
}
If isEmptry() returns false, there's no problem, but if it returns true, the method returns true. Also has a problem with ternary operations.
I'm having to use explicit if/else statements.
Has anyone else run across this?
Randy Stearns
****DISCLAIMER
The information contained in this e-mail and attachments, if any, is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not use, copy, distribute or disclose the e-mail and its attachment, or any part of its content or take any action in reliance of it. If you have received this e-mail in error, please e-mail the message back to the sender by replying and then deleting it. We cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments, and recommend that you subject these to your virus checking procedures prior to use