Buggy code:
public class BooleansRealmProxy extends Booleans implements RealmObjectProxy { private static long INDEX_DONE ; private static long INDEX_ISREADY ; private static long INDEX_MCOMPLETED ; private static Map < String , Long > columnIndices ; private static final List < String > FIELD_NAMES ; @ Override public boolean isDone ( ) { } @ Override public void setDone ( boolean value ) { } @ Override public boolean isReady ( ) { } @ Override public void setReady ( boolean value ) { } @ Override public boolean ismCompleted ( ) { } @ Override public void setmCompleted ( boolean value ) { } public static Table initTable ( ImplicitTransaction transaction ) { } public static void validateTable ( ImplicitTransaction transaction ) { if ( transaction . hasTable ( "class_Booleans" ) ) { Table table = transaction . getTable ( "class_Booleans" ) ; if ( ( table . getColumnCount ( ) ) != 3 ) { <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 < 3 ; i ++ ) { columnTypes . put ( table . getColumnName ( i ) , table . getColumnType ( i ) ) ; } if ( ! ( columnTypes . containsKey ( "done" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'done'" ) ; } if ( ( columnTypes . get ( "done" ) ) != ( ColumnType . BOOLEAN ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'boolean'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'done'" ) ; } if ( ! ( columnTypes . containsKey ( "isReady" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'isReady'" ) ; } if ( ( columnTypes . get ( "isReady" ) ) != ( ColumnType . BOOLEAN ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'boolean'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'isReady'" ) ; } if ( ! ( columnTypes . containsKey ( "mCompleted" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'mCompleted'" ) ; } if ( ( columnTypes . get ( "mCompleted" ) ) != ( ColumnType . BOOLEAN ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'boolean'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'mCompleted'" ) ; } BooleansRealmProxy . columnIndices = new HashMap < String , Long > ( ) ; for ( String fieldName : BooleansRealmProxy . 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>Booleans" ) ) ; } BooleansRealmProxy . columnIndices . put ( fieldName , index ) ; } BooleansRealmProxy . INDEX_DONE = table . getColumnIndex ( "done" ) ; BooleansRealmProxy . INDEX_ISREADY = table . getColumnIndex ( "isReady" ) ; BooleansRealmProxy . INDEX_MCOMPLETED = table . getColumnIndex ( "mCompleted" ) ; } else { throw new RealmMigrationNeededException ( "The<seq2seq4repair_space>Booleans<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 ( Booleans obj , JSONObject json ) throws JSONException { } public static void populateUsingJsonStream ( Booleans obj , JsonReader reader ) throws IOException { } public static Booleans copyOrUpdate ( Realm realm , Booleans object , boolean update , Map < RealmObject , RealmObjectProxy > cache ) { } public static Booleans copy ( Realm realm , Booleans newObject , boolean update , Map < RealmObject , RealmObjectProxy > cache ) { } static Booleans update ( Realm realm , Booleans realmObject , Booleans 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" ) ;