Buggy code:
public class B2I extends BTree { private static final String PROPERTY_BASECONGLOMID = "baseConglomerateId" ; private static final String PROPERTY_ROWLOCCOLUMN = "rowLocationColumn" ; static final int FORMAT_NUMBER = StoredFormatIds . ACCESS_B2I_V4_ID ; long baseConglomerateId ; int rowLocationColumn ; private static final int BASE_MEMORY_USAGE = ClassSize . estimateBaseFromCatalog ( B2I . class ) ; public int estimateMemoryUsage ( ) { } protected BTreeLockingPolicy getBtreeLockingPolicy ( Transaction rawtran , int lock_level , int mode , int isolation_level , ConglomerateController base_cc , OpenBTree open_btree ) throws StandardException { } public final ConglomerateController lockTable ( TransactionManager xact_manager , int open_mode , int lock_level , int isolation_level ) throws StandardException { } private void traverseRight ( ) { } public void create ( TransactionManager xact_manager , int segmentId , long input_conglomid , DataValueDescriptor [ ] template , ColumnOrdering [ ] columnOrder , int [ ] collationIds , Properties properties , int temporaryFlag ) throws StandardException { } public boolean fetchMaxOnBTree ( TransactionManager xact_manager , Transaction rawtran , long conglomId , int open_mode , int lock_level , LockingPolicy locking_policy , int isolation_level , FormatableBitSet scanColumnList , DataValueDescriptor [ ] fetchRow ) throws StandardException { } public long load ( TransactionManager xact_manager , boolean createConglom , RowLocationRetRowSource rowSource ) throws StandardException { } public ConglomerateController open ( TransactionManager xact_manager , Transaction rawtran , boolean hold , int open_mode , int lock_level , LockingPolicy locking_policy , StaticCompiledOpenConglomInfo static_info , DynamicCompiledOpenConglomInfo dynamic_info ) throws StandardException { } public ScanManager openScan ( TransactionManager xact_manager , Transaction rawtran , boolean hold , int open_mode , int lock_level , LockingPolicy locking_policy , int isolation_level , FormatableBitSet scanColumnList , DataValueDescriptor [ ] startKeyValue , int startSearchOperator , Qualifier [ ] [ ] qualifier , DataValueDescriptor [ ] stopKeyValue , int stopSearchOperator , StaticCompiledOpenConglomInfo static_info , DynamicCompiledOpenConglomInfo dynamic_info ) throws StandardException { } public ScanManager defragmentConglomerate ( TransactionManager xact_manager , Transaction rawtran , boolean hold , int open_mode , int lock_level , LockingPolicy locking_policy , int isolation_level ) throws StandardException { } public void purgeConglomerate ( TransactionManager xact_manager , Transaction rawtran ) throws StandardException { } public void compressConglomerate ( TransactionManager xact_manager , Transaction rawtran ) throws StandardException { } public StoreCostController openStoreCost ( TransactionManager xact_manager , Transaction rawtran ) throws StandardException { } public void drop ( TransactionManager xact_manager ) throws StandardException { } public StaticCompiledOpenConglomInfo getStaticCompiledConglomInfo ( TransactionController xact_manager , long conglomId ) throws StandardException { } public int getTypeFormatId ( ) { <START_BUG> return StoredFormatIds . ACCESS_B2I_V3_ID ; <END_BUG> } public void writeExternal_v10_2 ( ObjectOutput out ) throws IOException { } public void writeExternal ( ObjectOutput out ) throws IOException { } private final void localReadExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { } public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { } public void readExternalFromArray ( ArrayInputStream in ) throws IOException , ClassNotFoundException { } }

Fix:
return StoredFormatIds . ACCESS_B2I_V4_ID ;