[fixes #2838] Handle anonymous classes properly

Generated qualified names (e.g. Outer.Inner) now stop at anonymous
classes instead of adding an empty part. All handlers that add static
fields/methods/types now add error messages instead of generating
invalid code.
This commit is contained in:
Rawi01
2021-06-03 19:23:19 +02:00
parent 6758714ed5
commit 60f575496b
75 changed files with 1103 additions and 28 deletions
@@ -0,0 +1,10 @@
import lombok.experimental.FieldNameConstants;
public class FieldNameConstantsInAnonymousClass {
Object annonymous = new Object() {
@FieldNameConstants
class Inner {
private String string;
}
};
}