i-net-software / i-net-software/JWebAssembly
Public static Methods not found?
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
Greetings,
after setting up the Gradle Build, I have tried to compile a simple Java Class and it fails promptly:
```shell
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` :
```java
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 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?
Contributor guide
Assessment
This issue has not been assessed yet.