I got the problem with the following error:
Syntax error on token “;”, { expected after this token
Syntax error, insert “}” to complete EnumBody
public enum ImpNoise {
INSTANCE;
private int p[] = new int[512];
for(int i = 0; i < 256; i++) {
}
}
I stripped the whole class down to the bare minimum as you can see above.
I figured out that the for loop is causing the problem.
But i really don’t get it, it looks ok right?
You need to place code in a code block. Only initialisers for fields can avoid this.
What you may have intended was