This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Strange, elusive bug in boolean return values with latest fetch from cvs
- From: Tom Tromey <tromey at redhat dot com>
- To: "Scott Gilbertson" <scottg at mantatest dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: 07 Jun 2004 15:15:54 -0600
- Subject: Re: Strange, elusive bug in boolean return values with latest fetch from cvs
- References: <118401c44a59$559bb8b0$af16a8c0@mantatest.com>
- Reply-to: tromey at redhat dot com
>>>>> "Scott" == Scott Gilbertson <scottg@mantatest.com> writes:
Scott> Does anybody know of a bug injected since about mid-March which
Scott> might cause this sort of problem, or how to characterize and/or
Scott> diagnose it so I can report it properly?
Among other things, the tree-ssa branch was merged to mainline since
then. So, many things have changed.
Simplest for us would be if you made a small self-contained program
which we could run which prints a clearly incorrect result.
I tried a simple program with a recent-ish cvs head and couldn't
reproduce. This program prints "true" as expected.
public class t
{
public boolean T = true;
t group;
public static final boolean isSelected (t arg)
{
return arg.T;
}
public final boolean isSelected()
{
return group == null ? false : group.isSelected (this);
}
public static void main(String[] args)
{
t z = new t();
z.group = z;
System.out.println(z.isSelected());
}
}
Tom