Buggy code:
public class Heap extends GenericConglomerate implements StaticCompiledOpenConglomInfo , Conglomerate { protected int conglom_format_id ; private ContainerKey id ; int [ ] format_ids ; protected int [ ] collation_ids ; private static final int BASE_MEMORY_USAGE = ClassSize . estimateBaseFromCatalog ( Heap . class ) ; private static final int CONTAINER_KEY_MEMORY_USAGE = ClassSize . estimateBaseFromCatalog ( ContainerKey . class ) ; public int estimateMemoryUsage ( ) { } public Heap ( ) { } protected void create ( Transaction rawtran , int segmentId , long input_containerid , DataValueDescriptor [ ] template , ColumnOrdering [ ] columnOrder , int [ ] collationIds , Properties properties , int conglom_format_id , int tmpFlag ) throws StandardException { } public void boot_create ( long containerid , DataValueDescriptor [ ] template ) { } public void addColumn ( TransactionManager xact_manager , int column_id , Storable template_column , int collation_id ) throws StandardException { } public void drop ( TransactionManager xact_manager ) 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 final ContainerKey getId ( ) { } public final long getContainerid ( ) { } public DynamicCompiledOpenConglomInfo getDynamicCompiledConglomInfo ( long conglomId ) throws StandardException { } public StaticCompiledOpenConglomInfo getStaticCompiledConglomInfo ( TransactionController tc , long conglomId ) throws StandardException { } public boolean isTemporary ( ) { } 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 void purgeConglomerate ( TransactionManager xact_manager , Transaction rawtran ) throws StandardException { } public void compressConglomerate ( TransactionManager xact_manager , Transaction rawtran ) 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 StoreCostController openStoreCost ( TransactionManager xact_manager , Transaction rawtran ) throws StandardException { } public String toString ( ) { } public DataValueDescriptor getConglom ( ) { } public int getTypeFormatId ( ) { } public boolean isNull ( ) { } public void restoreToNull ( ) { } protected void writeExternal_v10_2 ( ObjectOutput out ) throws IOException { <START_BUG> FormatIdUtil . writeFormatIdInteger ( out , this . getTypeFormatId ( ) ) ; <END_BUG> out . writeInt ( ( ( int ) ( id . getSegmentId ( ) ) ) ) ; out . writeLong ( id . getContainerId ( ) ) ; out . writeInt ( format_ids . length ) ; ConglomerateUtil . writeFormatIdArray ( format_ids , out ) ; } 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:
FormatIdUtil . writeFormatIdInteger ( out , conglom_format_id ) ;