From: Mark Wielaard Date: Fri, 20 Mar 2009 20:17:17 +0000 (+0100) Subject: Work around compiler being too smart and noticing o == null. X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=HEAD;p=frysk.git Work around compiler being too smart and noticing o == null. --- diff --git a/frysk-core/frysk/pkglibdir/ChangeLog b/frysk-core/frysk/pkglibdir/ChangeLog index 0c4b20f59..9b8851315 100644 --- a/frysk-core/frysk/pkglibdir/ChangeLog +++ b/frysk-core/frysk/pkglibdir/ChangeLog @@ -1,3 +1,8 @@ +2009-03-20 Mark Wielaard + + * FunitSimpleInterfaceTest.java (main): Work around compiler being + too smart...and noticing o == null. + 2008-06-17 Teresa Thomas * funit-ctypes.c: Write to float_. diff --git a/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java b/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java index dd2504e85..3bb9de4cb 100644 --- a/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java +++ b/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java @@ -43,6 +43,8 @@ public class FunitSimpleInterfaceTest implements FunitSimpleInterface{ FunitSimpleInterface inter = new FunitSimpleInterfaceTest(); // Crash Object o = null; + if (o == inter) // Work around compiler being too smart... + o = inter; o.toString(); inter.simpleMethod(); }