Bug in kjc
tullmann at cs.utah.edu
Thu Feb 10 13:46:55 PST 2000
I sent this in to the KOPI folks, but I haven't heard a peep from
them. As an FYI to other Kaffer's, I present the do-while bug in kjc.
(If you look at the generated bytecode, the 'continue' is jumping to
the top of the loop and not down to the test at the bottom.)
I haven't tried upgrading to the latest KJC.
----- ----- ---- --- --- -- - - - - -
Pat Tullmann tullmann at cs.utah.edu
Mean people suck.
public class DoWhileCompilerBug
public static String getArgs()
public static void main(String ignoredArgs)
int loopct = 0;
args = getArgs();
if (loopct == 10)
if (args == null)
while (args != null);
More information about the kaffe