Buggy code:
public class AllTypesRealmProxy extends AllTypes implements RealmObjectProxy { private static long INDEX_COLUMNSTRING ; private static long INDEX_COLUMNLONG ; private static long INDEX_COLUMNFLOAT ; private static long INDEX_COLUMNDOUBLE ; private static long INDEX_COLUMNBOOLEAN ; private static long INDEX_COLUMNDATE ; private static long INDEX_COLUMNBINARY ; private static long INDEX_COLUMNOBJECT ; private static long INDEX_COLUMNREALMLIST ; private static Map < String , Long > columnIndices ; private static final List < String > FIELD_NAMES ; @ Override public String getColumnString ( ) { } @ Override public void setColumnString ( String value ) { } @ Override public long getColumnLong ( ) { } @ Override public void setColumnLong ( long value ) { } @ Override public float getColumnFloat ( ) { } @ Override public void setColumnFloat ( float value ) { } @ Override public double getColumnDouble ( ) { } @ Override public void setColumnDouble ( double value ) { } @ Override public boolean isColumnBoolean ( ) { } @ Override public void setColumnBoolean ( boolean value ) { } @ Override public Date getColumnDate ( ) { } @ Override public void setColumnDate ( Date value ) { } @ Override public byte [ ] getColumnBinary ( ) { } @ Override public void setColumnBinary ( byte [ ] value ) { } @ Override public AllTypes getColumnObject ( ) { } @ Override public void setColumnObject ( AllTypes value ) { } @ Override public RealmList < AllTypes > getColumnRealmList ( ) { } @ Override public void setColumnRealmList ( RealmList < AllTypes > value ) { } public static Table initTable ( ImplicitTransaction transaction ) { } public static void validateTable ( ImplicitTransaction transaction ) { if ( transaction . hasTable ( "class_AllTypes" ) ) { Table table = transaction . getTable ( "class_AllTypes" ) ; if ( ( table . getColumnCount ( ) ) != 9 ) { <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 < 9 ; i ++ ) { columnTypes . put ( table . getColumnName ( i ) , table . getColumnType ( i ) ) ; } if ( ! ( columnTypes . containsKey ( "columnString" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnString'" ) ; } if ( ( columnTypes . get ( "columnString" ) ) != ( ColumnType . STRING ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'String'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnString'" ) ; } if ( ( table . getPrimaryKey ( ) ) != ( table . getColumnIndex ( "columnString" ) ) ) { throw new RealmMigrationNeededException ( "Primary<seq2seq4repair_space>key<seq2seq4repair_space>not<seq2seq4repair_space>defined<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnString'" ) ; } if ( ! ( table . hasIndex ( table . getColumnIndex ( "columnString" ) ) ) ) { throw new RealmMigrationNeededException ( "Index<seq2seq4repair_space>not<seq2seq4repair_space>defined<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnString'" ) ; } if ( ! ( columnTypes . containsKey ( "columnLong" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnLong'" ) ; } if ( ( columnTypes . get ( "columnLong" ) ) != ( ColumnType . INTEGER ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'long'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnLong'" ) ; } if ( ! ( columnTypes . containsKey ( "columnFloat" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnFloat'" ) ; } if ( ( columnTypes . get ( "columnFloat" ) ) != ( ColumnType . FLOAT ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'float'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnFloat'" ) ; } if ( ! ( columnTypes . containsKey ( "columnDouble" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnDouble'" ) ; } if ( ( columnTypes . get ( "columnDouble" ) ) != ( ColumnType . DOUBLE ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'double'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnDouble'" ) ; } if ( ! ( columnTypes . containsKey ( "columnBoolean" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnBoolean'" ) ; } if ( ( columnTypes . get ( "columnBoolean" ) ) != ( ColumnType . BOOLEAN ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'boolean'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnBoolean'" ) ; } if ( ! ( columnTypes . containsKey ( "columnDate" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnDate'" ) ; } if ( ( columnTypes . get ( "columnDate" ) ) != ( ColumnType . DATE ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'Date'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnDate'" ) ; } if ( ! ( columnTypes . containsKey ( "columnBinary" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnBinary'" ) ; } if ( ( columnTypes . get ( "columnBinary" ) ) != ( ColumnType . BINARY ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'byte[]'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnBinary'" ) ; } if ( ! ( columnTypes . containsKey ( "columnObject" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnObject'" ) ; } if ( ( columnTypes . get ( "columnObject" ) ) != ( ColumnType . LINK ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'AllTypes'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnObject'" ) ; } if ( ! ( transaction . hasTable ( "class_AllTypes" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>class<seq2seq4repair_space>'class_AllTypes'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnObject'" ) ; } if ( ! ( columnTypes . containsKey ( "columnRealmList" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>field<seq2seq4repair_space>'columnRealmList'" ) ; } if ( ( columnTypes . get ( "columnRealmList" ) ) != ( ColumnType . LINK_LIST ) ) { throw new RealmMigrationNeededException ( "Invalid<seq2seq4repair_space>type<seq2seq4repair_space>'AllTypes'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnRealmList'" ) ; } if ( ! ( transaction . hasTable ( "class_AllTypes" ) ) ) { throw new RealmMigrationNeededException ( "Missing<seq2seq4repair_space>class<seq2seq4repair_space>'class_AllTypes'<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>'columnRealmList'" ) ; } AllTypesRealmProxy . columnIndices = new HashMap < String , Long > ( ) ; for ( String fieldName : AllTypesRealmProxy . 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>AllTypes" ) ) ; } AllTypesRealmProxy . columnIndices . put ( fieldName , index ) ; } AllTypesRealmProxy . INDEX_COLUMNSTRING = table . getColumnIndex ( "columnString" ) ; AllTypesRealmProxy . INDEX_COLUMNLONG = table . getColumnIndex ( "columnLong" ) ;

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