public class FieldNameConstantsInAnonymousClass { Object annonymous = new Object() { class Inner { private String string; } }; }