Error was
java.lang.IncompatibleClassChangeError: foo.GetDeclaringClassTest and foo.GetDeclaringClassTest$Foo$BackRef disagree on InnerClasses attribute
Is it because I have not modified the outer class? How can I create a copy of a inner class (and add one field) without getting this error?