Buggy code:
public class NSCell extends NSObject { public NSCell ( ) { } public NSCell ( int id ) { } public boolean acceptsFirstResponder ( ) { } public int action ( ) { } public int alignment ( ) { } public boolean allowsEditingTextAttributes ( ) { } public boolean allowsMixedState ( ) { } public boolean allowsUndo ( ) { } public NSAttributedString attributedStringValue ( ) { } public int backgroundStyle ( ) { } public int baseWritingDirection ( ) { } public void calcDrawInfo ( NSRect aRect ) { } public int cellAttribute ( int aParameter ) { } public NSSize cellSize ( ) { NSSize result = new NSSize ( ) ; <START_BUG> OS . objc_msgSend_struct ( result , this . id , sel_cellSize ) ; <END_BUG> return result ; } public NSSize cellSizeForBounds ( NSRect aRect ) { } public int compare ( id otherCell ) { } public boolean continueTracking ( NSPoint lastPoint , NSPoint currentPoint , NSView controlView ) { } public int controlSize ( ) { } public int controlTint ( ) { } public NSView controlView ( ) { } public static int defaultFocusRingType ( ) { } public static NSMenu defaultMenu ( ) { } public double doubleValue ( ) { } public void drawInteriorWithFrame ( NSRect cellFrame , NSView controlView ) { } public void drawWithExpansionFrame ( NSRect cellFrame , NSView view ) { } public void drawWithFrame ( NSRect cellFrame , NSView controlView ) { } public NSRect drawingRectForBounds ( NSRect theRect ) { } public void editWithFrame ( NSRect aRect , NSView controlView , NSText textObj , id anObject , NSEvent theEvent ) { } public void endEditing ( NSText textObj ) { } public int entryType ( ) { } public NSRect expansionFrameWithFrame ( NSRect cellFrame , NSView view ) { } public float floatValue ( ) { } public int focusRingType ( ) { } public NSFont font ( ) { } public id formatter ( ) { } public void getPeriodicDelay ( int delay , int interval ) { } public boolean hasValidObjectValue ( ) { } public void highlight ( boolean flag , NSRect cellFrame , NSView controlView ) { } public NSColor highlightColorWithFrame ( NSRect cellFrame , NSView controlView ) { } public int hitTestForEvent ( NSEvent event , NSRect cellFrame , NSView controlView ) { } public NSImage image ( ) { } public NSRect imageRectForBounds ( NSRect theRect ) { } public boolean importsGraphics ( ) { } public NSCell initImageCell ( NSImage image ) { } public NSCell initTextCell ( NSString aString ) { } public int intValue ( ) { } public int integerValue ( ) { } public int interiorBackgroundStyle ( ) { } public boolean isBezeled ( ) { } public boolean isBordered ( ) { } public boolean isContinuous ( ) { } public boolean isEditable ( ) { } public boolean isEnabled ( ) { } public boolean isEntryAcceptable ( NSString aString ) { } public boolean isHighlighted ( ) { } public boolean isOpaque ( ) { } public boolean isScrollable ( ) { } public boolean isSelectable ( ) { } public NSString keyEquivalent ( ) { } public int lineBreakMode ( ) { } public NSMenu menu ( ) { } public NSMenu menuForEvent ( NSEvent event , NSRect cellFrame , NSView view ) { } public NSString mnemonic ( ) { } public int mnemonicLocation ( ) { } public int mouseDownFlags ( ) { } public int nextState ( ) { } public id objectValue ( ) { } public void performClick ( id sender ) { } public static boolean prefersTrackingUntilMouseUp ( ) { } public boolean refusesFirstResponder ( ) { } public id representedObject ( ) { } public void resetCursorRect ( NSRect cellFrame , NSView controlView ) { } public void selectWithFrame ( NSRect aRect , NSView controlView , NSText textObj , id anObject , int selStart , int selLength ) { } public int sendActionOn ( int mask ) { } public boolean sendsActionOnEndEditing ( ) { } public void setAction ( int aSelector ) { } public void setAlignment ( int mode ) { } public void setAllowsEditingTextAttributes ( boolean flag ) { } public void setAllowsMixedState ( boolean flag ) { } public void setAllowsUndo ( boolean allowsUndo ) { } public void setAttributedStringValue ( NSAttributedString obj ) { } public void setBackgroundStyle ( int style ) { } public void setBaseWritingDirection ( int writingDirection ) { } public void setBezeled ( boolean flag ) { } public void setBordered ( boolean flag ) { } public void setCellAttribute ( int aParameter , int value ) { } public void setContinuous ( boolean flag ) { } public void setControlSize ( int size ) { } public void setControlTint ( int controlTint ) { } public void setControlView ( NSView view ) { } public void setDoubleValue ( double aDouble ) { } public void setEditable ( boolean flag ) { } public void setEnabled ( boolean flag ) { } public void setEntryType ( int aType ) { } public void setFloatValue ( float aFloat ) { } public void setFloatingPointFormat ( boolean autoRange , int leftDigits , int rightDigits ) { } public void setFocusRingType ( int focusRingType ) { } public void setFont ( NSFont fontObj ) { } public void setFormatter ( NSFormatter newFormatter ) { } public void setHighlighted ( boolean flag ) { } public void setImage ( NSImage image ) { } public void setImportsGraphics ( boolean flag ) { } public void setIntValue ( int anInt ) { } public void setIntegerValue ( int anInteger ) { } public void setLineBreakMode ( int mode ) { } public void setMenu ( NSMenu aMenu ) { } public void setMnemonicLocation ( int location ) { } public void setNextState ( ) { } public void setObjectValue ( id obj ) { }

Fix:
OS . objc_msgSend_stret ( result , this . id , sel_cellSize ) ;