having trouble with a bug in the java viewer, trying to reduce this down to smallest possible test case