fixed Issue 233:

Javac parser handles ";" (empty statements) as empty blocks with an invalid position. Thats why delomok replaces ";" with "{}". This gets an issue when you use this in an interface, since interfaces are not allowed to have initializer blocks.
This commit is contained in:
peichhorn committed 2011-07-14 10:42:42 +02:00
1 parent 4b9a8142d0
commit 68b079d312
5 files changed
+31 -9

No files matched your search

@@ -1,5 +1,13 @@
@SuppressWarnings("all")
interface Interfaces {
enum Ranks {
CLUBS,
HEARTS,
DIAMONDS,
SPADES;
}
;
;
int x = 10;
void y();
public static final int a = 20;