Buggy code:
public class SimpleRealmProxy extends Simple implements RealmObjectProxy { private static long INDEX_NAME ; private static long INDEX_AGE ; private static Map < String , Long > columnIndices ; private static final List < String > FIELD_NAMES ; @ Override public String getName ( ) { } @ Override public void setName ( String value ) { } @ Override public int getAge ( ) { } @ Override public void setAge ( int value ) { } public static Table initTable ( ImplicitTransaction transaction ) { } public static void validateTable ( ImplicitTransaction transaction ) { if ( transaction . hasTable ( "class_Simple" ) ) { Table table = transaction . getTable ( "class_Simple" ) ; if ( ( table . getColumnCount ( ) ) != 2 ) { <START_BUG> throw new RealmMigrationNeededException ( "Column<seq2seq4repair_space>count<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>match" ) ; <END_BUG> } Map < String , ColumnType > columnTypes = new HashMap < String , ColumnType > ( ) ; for ( long i = 0 ; i < 2 ; i ++ ) { columnTypes . put ( table . getColumnName ( i ) , table . getColumnType ( i ) ) ; } if ( ! ( columnTypes . containsKey ( "name" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'name'" ) ; } if ( ( columnTypes . get ( "name" ) ) != ( ColumnType . STRING ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'String'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'name'" ) ; } if ( ! ( columnTypes . containsKey ( "age" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'age'" ) ; } if ( ( columnTypes . get ( "age" ) ) != ( ColumnType . INTEGER ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'int'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'age'" ) ; } SimpleRealmProxy . columnIndices = new HashMap < String , Long > ( ) ; for ( String fieldName : SimpleRealmProxy . getFieldNames ( ) ) { long index = table . getColumnIndex ( fieldName ) ; if ( index == ( - 1 ) ) { throw new RealmMigrationNeededException ( ( ( "Field<seq2seq4repair_space>'" + fieldName ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>for<seq2seq4repair_space>type<seq2seq4repair_space>Simple" ) ) ; } SimpleRealmProxy . columnIndices . put ( fieldName , index ) ; } SimpleRealmProxy . INDEX_NAME = table . getColumnIndex ( "name" ) ; SimpleRealmProxy . INDEX_AGE = table . getColumnIndex ( "age" ) ; } else { throw new RealmMigrationNeededException ( "The<seq2seq4repair_space>Simple<seq2seq4repair_space>class<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>from<seq2seq4repair_space>the<seq2seq4repair_space>schema<seq2seq4repair_space>for<seq2seq4repair_space>this<seq2seq4repair_space>Realm." ) ; } } public static String getTableName ( ) { } public static List < String > getFieldNames ( ) { } public static Map < String , Long > getColumnIndices ( ) { } public static void populateUsingJsonObject ( Simple obj , JSONObject json ) throws JSONException { } public static void populateUsingJsonStream ( Simple obj , JsonReader reader ) throws IOException { } public static Simple copyOrUpdate ( Realm realm , Simple object , boolean update , Map < RealmObject , RealmObjectProxy > cache ) { } public static Simple copy ( Realm realm , Simple newObject , boolean update , Map < RealmObject , RealmObjectProxy > cache ) { } static Simple update ( Realm realm , Simple realmObject , Simple newObject , Map < RealmObject , RealmObjectProxy > cache ) { } @ Override public String toString ( ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object o ) { } }

Fix:
throw new RealmMigrationNeededException ( "Field<seq2seq4repair_space>count<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>match" ) ;