{
phaseProcessed = i + 2;
try
{
StubCreator stubCreator;
if(i == 0)
{
stubCreator = new MinimalStubCreator(missingClasses, stubJar,
stubObject, cmdGcj, new File(stubsDir, "tmp"), libgcjDotJar, classesInObject);
} else if(i == 1)
{
stubCreator = new MinimalWithInheritanceStubCreator(missingClasses,
stubJar, stubObject, cmdGcj, new File(stubsDir, "tmp"), libgcjDotJar, classesInObject);
} else if(i == 2)
{
stubCreator = new FullPublicInterfaceStubCreator(missingClasses,
stubJar, stubObject, cmdGcj, new File(stubsDir, "tmp"), libgcjDotJar, classesInObject);
} else
{
throw new Exception("Can't be here?!");
}
stubCreator.create();
// compile again, has to work with the created stub
commandExecutor = new CommandExecutor(cmd.toArray(new String[0]), stubsDir);
commandExecutor.execute();
if(commandExecutor.getOutput().length != 0 || commandExecutor.getError().length != 0)