Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Problems with inverting results from boolean methods

That sounds like it would be a very serious issue (and a very surprising one!). Do you have any aspects involved or is this reproduceable with straight Java code only? Do you get different results running the exact same byte code on e.g. a sun vm?

Please raise a bug report if this issue is still reproduceable and we can investigate there.
Thanks, Adrian.

On 14/06/06, Stearns, Randy <RStearns@xxxxxxxxxxxxxxxxxx> wrote:

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

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users





--
-- Adrian
adrian.colyer@xxxxxxxxx

Back to the top