Buggy code:
public class Composite extends Scrollable { Layout layout ; WINDOWPOS [ ] lpwp ; Control [ ] tabList ; int layoutCount ; int backgroundMode ; Composite ( ) { } public Composite ( Composite parent , int style ) { } Control [ ] _getChildren ( ) { } Control [ ] _getTabList ( ) { } public void changed ( Control [ ] changed ) { } void checkBuffered ( ) { } void checkComposited ( ) { } protected void checkSubclass ( ) { } Control [ ] computeTabList ( ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void copyArea ( GC gc , int x , int y , int width , int height ) { } void createHandle ( ) { } Composite findDeferredControl ( ) { } Menu [ ] findMenus ( Control control ) { } void fixChildren ( Shell newShell , Shell oldShell , Decorations newDecorations , Decorations oldDecorations , Menu [ ] menus ) { } void fixTabList ( Control control ) { } public int getBackgroundMode ( ) { } public Control [ ] getChildren ( ) { } int getChildrenCount ( ) { } public Layout getLayout ( ) { } public Control [ ] getTabList ( ) { } boolean hooksKeys ( ) { } public boolean getLayoutDeferred ( ) { } public boolean isLayoutDeferred ( ) { } public void layout ( ) { } public void layout ( boolean changed ) { } public void layout ( boolean changed , boolean all ) { } public void layout ( Control [ ] changed ) { } void markLayout ( boolean changed , boolean all ) { } Point minimumSize ( int wHint , int hHint , boolean changed ) { } boolean redrawChildren ( ) { } void releaseParent ( ) { } void releaseChildren ( boolean destroy ) { } void releaseWidget ( ) { } void removeControl ( Control control ) { } void resizeChildren ( ) { } boolean resizeChildren ( boolean defer , WINDOWPOS [ ] pwp ) { } void resizeEmbeddedHandle ( int embeddedHandle , int width , int height ) { } void sendResize ( ) { } public void setBackgroundMode ( int mode ) { } void setBounds ( int x , int y , int width , int height , int flags , boolean defer ) { if ( ( display . resizeCount ) > ( Display . RESIZE_LIMIT ) ) { defer = false ; } if ( ( ! defer ) && ( ( ( state ) & ( CANVAS ) ) != 0 ) ) { <START_BUG> state &= ( ~ ( RESIZE_OCCURRED ) ) | ( MOVE_OCCURRED ) ; <END_BUG> state |= ( RESIZE_DEFERRED ) | ( MOVE_DEFERRED ) ; } super . setBounds ( x , y , width , height , flags , defer ) ; if ( ( ! defer ) && ( ( ( state ) & ( CANVAS ) ) != 0 ) ) { boolean wasMoved = ( ( state ) & ( MOVE_OCCURRED ) ) != 0 ; boolean wasResized = ( ( state ) & ( RESIZE_OCCURRED ) ) != 0 ; state &= ~ ( ( RESIZE_DEFERRED ) | ( MOVE_DEFERRED ) ) ; if ( wasMoved && ( ! ( isDisposed ( ) ) ) ) sendMove ( ) ; if ( wasResized && ( ! ( isDisposed ( ) ) ) ) sendResize ( ) ; } } boolean setFixedFocus ( ) { } public boolean setFocus ( ) { } public void setLayout ( Layout layout ) { } public void setLayoutDeferred ( boolean defer ) { } public void setTabList ( Control [ ] tabList ) { } void setResizeChildren ( boolean resize ) { } boolean setTabGroupFocus ( ) { } String toolTipText ( NMTTDISPINFO hdr ) { } boolean translateMnemonic ( Event event , Control control ) { } boolean translateTraversal ( MSG msg ) { } void updateBackgroundColor ( ) { } void updateBackgroundImage ( ) { } void updateBackgroundMode ( ) { } void updateFont ( Font oldFont , Font newFont ) { } void updateLayout ( boolean resize , boolean all ) { } void updateUIState ( ) { } int widgetStyle ( ) { } LRESULT WM_ERASEBKGND ( int wParam , int lParam ) { } LRESULT WM_GETDLGCODE ( int wParam , int lParam ) { } LRESULT WM_GETFONT ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDOWN ( int wParam , int lParam ) { } LRESULT WM_NCHITTEST ( int wParam , int lParam ) { } LRESULT WM_PARENTNOTIFY ( int wParam , int lParam ) { } LRESULT WM_PAINT ( int wParam , int lParam ) { } LRESULT WM_PRINTCLIENT ( int wParam , int lParam ) { } LRESULT WM_SETFONT ( int wParam , int lParam ) { } LRESULT WM_SIZE ( int wParam , int lParam ) { } LRESULT WM_SYSCOLORCHANGE ( int wParam , int lParam ) { } LRESULT WM_SYSCOMMAND ( int wParam , int lParam ) { } LRESULT WM_UPDATEUISTATE ( int wParam , int lParam ) { } LRESULT wmNCPaint ( int hwnd , int wParam , int lParam ) { } LRESULT wmNotify ( NMHDR hdr , int wParam , int lParam ) { } }

Fix:
state &= ~ ( ( RESIZE_OCCURRED ) | ( MOVE_OCCURRED ) ) ;