Buggy code:
public class Spinner extends Composite { int hwndText ; int hwndUpDown ; boolean ignoreModify ; int pageIncrement ; int digits ; static final int EditProc ; static final TCHAR EditClass = new TCHAR ( 0 , "EDIT" , true ) ; static final int UpDownProc ; static final TCHAR UpDownClass = new TCHAR ( 0 , OS . UPDOWN_CLASS , true ) ; public static final int LIMIT ; public Spinner ( Composite parent , int style ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } static int checkStyle ( int style ) { } boolean checkHandle ( int hwnd ) { } protected void checkSubclass ( ) { } void createHandle ( ) { } public void addModifyListener ( ModifyListener listener ) { } public void addSelectionListener ( SelectionListener listener ) { } void addVerifyListener ( VerifyListener listener ) { } int borderHandle ( ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } public Rectangle computeTrim ( int x , int y , int width , int height ) { } public void copy ( ) { } public void cut ( ) { } int defaultBackground ( ) { } void enableWidget ( boolean enabled ) { } void deregister ( ) { } boolean hasFocus ( ) { } public int getDigits ( ) { } String getDecimalSeparator ( ) { } public int getIncrement ( ) { } public int getMaximum ( ) { } public int getMinimum ( ) { } public int getPageIncrement ( ) { } public int getSelection ( ) { } int getSelectionText ( boolean [ ] parseFail ) { } public String getText ( ) { } public int getTextLimit ( ) { } int mbcsToWcsPos ( int mbcsPos ) { } public void paste ( ) { } void register ( ) { } void releaseHandle ( ) { } public void removeModifyListener ( ModifyListener listener ) { } public void removeSelectionListener ( SelectionListener listener ) { } void removeVerifyListener ( VerifyListener listener ) { } boolean sendKeyEvent ( int type , int msg , int wParam , int lParam , Event event ) { } void setBackgroundImage ( int hBitmap ) { } void setBackgroundPixel ( int pixel ) { } public void setDigits ( int value ) { } void setForegroundPixel ( int pixel ) { } public void setIncrement ( int value ) { checkWidget ( ) ; if ( value < 1 ) return ; int hHeap = OS . GetProcessHeap ( ) ; int count = ( ( int ) ( OS . SendMessage ( hwndUpDown , UDM_GETACCEL , 0 , ( ( UDACCEL ) ( null ) ) ) ) ) ; int udaccels = OS . HeapAlloc ( hHeap , HEAP_ZERO_MEMORY , ( ( UDACCEL . sizeof ) * count ) ) ; OS . SendMessage ( hwndUpDown , UDM_GETACCEL , count , udaccels ) ; int first = - 1 ; UDACCEL udaccel = new UDACCEL ( ) ; for ( int i = 0 ; i < count ; i ++ ) { int offset = udaccels + ( i * ( UDACCEL . sizeof ) ) ; OS . MoveMemory ( udaccel , offset , sizeof ) ; if ( first == ( - 1 ) ) first = udaccel . nInc ; <START_BUG> udaccel . nInc = ( ( udaccel . nInc ) * value ) // first ; <END_BUG> OS . MoveMemory ( offset , udaccel , sizeof ) ; } OS . SendMessage ( hwndUpDown , UDM_SETACCEL , count , udaccels ) ; OS . HeapFree ( hHeap , 0 , udaccels ) ; } public void setMaximum ( int value ) { } public void setMinimum ( int value ) { } public void setPageIncrement ( int value ) { } public void setSelection ( int value ) { } void setSelection ( int value , boolean setPos , boolean setText , boolean notify ) { } public void setTextLimit ( int limit ) { } void setToolTipText ( Shell shell , String string ) { } public void setValues ( int selection , int minimum , int maximum , int digits , int increment , int pageIncrement ) { } void subclass ( ) { } void unsubclass ( ) { } String verifyText ( String string , int start , int end , Event keyEvent ) { } int widgetExtStyle ( ) { } int windowProc ( int hwnd , int msg , int wParam , int lParam ) { } LRESULT WM_ERASEBKGND ( int wParam , int lParam ) { } LRESULT WM_KILLFOCUS ( int wParam , int lParam ) { } LRESULT WM_SETFOCUS ( int wParam , int lParam ) { } LRESULT WM_SETFONT ( int wParam , int lParam ) { } LRESULT WM_SIZE ( int wParam , int lParam ) { } LRESULT wmChar ( int hwnd , int wParam , int lParam ) { } LRESULT wmClipboard ( int hwndText , int msg , int wParam , int lParam ) { } LRESULT wmCommandChild ( int wParam , int lParam ) { } LRESULT wmKeyDown ( int hwnd , int wParam , int lParam ) { } LRESULT wmKillFocus ( int hwnd , int wParam , int lParam ) { } LRESULT wmNotifyChild ( NMHDR hdr , int wParam , int lParam ) { } LRESULT wmScrollChild ( int wParam , int lParam ) { } }

Fix:
udaccel . nInc = ( ( udaccel . nInc ) // first ) * value ;