This is another test from the paper "Decompiling Java Bytecode: Problems, Traps and Pitfalls", Figure 5. The source code is:
    public int foo(int i, int j) {
        while (true) {
            try
            {   while (i < j)
                    i = j++/i;
            }
            catch (RuntimeException re)
            {   i = 10;
                continue;
            }
            break;
        }
        return j;
    }

The while (true) and the continue seem to throw some decompilers.

-- MikeVanEmmerik - 13 Feb 2003

Revision: r1.2 - 13 Feb 2003 - 22:17 - MikeVanEmmerik
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback