-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
Description
Greetings,
after setting up the Gradle Build, I have tried to compile a simple Java Class and it fails promptly:
Execution failed for task ':wasm'.
> java.util.NoSuchElementException
at com.manticore.jsqlformatter.JSQLFormatter.appendDelete(JSQLFormatter.java:522)
which refers to a private static
method using an Enum separation
:
private static void appendDelete(StringBuilder builder, Delete delete, int indent) {
int i = 0;
appendKeyWord(builder, outputFormat, "DELETE", "", " ");
OracleHint oracleHint = delete.getOracleHint();
if (oracleHint != null) appendHint(builder, outputFormat, oracleHint.toString(), "", " ");
List<Table> tables = delete.getTables();
if (tables != null && tables.size() > 0) {
int j = 0;
for (Table table : tables) {
switch (separation) { // This is line 522 where JWebAssembly fails
/*--> */ case AFTER: // separation is defined on Class Level as:
appendObjectName( // private static Separation separation = Separation.BEFORE;
builder,
outputFormat,
table.getFullyQualifiedName(),
"",
j < tables.size() - 1 ? ", " : " ");
break;
case BEFORE:
default:
appendObjectName(
builder, outputFormat, table.getFullyQualifiedName(), j > 0 ? ", " : "", " ");
break;
}
j++;
}
}
....
What exactly could be the problem here please?