]> sourceware.org Git - frysk.git/commitdiff
Work around compiler being too smart and noticing o == null. master
authorMark Wielaard <mjw@redhat.com>
Fri, 20 Mar 2009 20:17:17 +0000 (21:17 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 20 Mar 2009 20:17:17 +0000 (21:17 +0100)
frysk-core/frysk/pkglibdir/ChangeLog
frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java

index 0c4b20f5942c22e15390d2d51cd5b3bf51c0f82e..9b88513156c4f32e32bcef8416ed3818c09ae2f4 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-20  Mark Wielaard  <mark@klomp.org>
+
+       * FunitSimpleInterfaceTest.java (main): Work around compiler being
+       too smart...and noticing o == null.
+
 2008-06-17 Teresa Thomas <tthomas@redhat.com>
 
        * funit-ctypes.c: Write to float_.
index dd2504e855145f899bd630b61533e1a5a3420d86..3bb9de4cbc884951d6f086e74fb0af4975c4336e 100644 (file)
@@ -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();
     }
This page took 0.028092 seconds and 5 git commands to generate.