Buggy code:
int getForegroundPixel ( ) { } public int getGridLineWidth ( ) { } public int getHeaderHeight ( ) { } public boolean getHeaderVisible ( ) { } Point getImageSize ( ) { } public TreeColumn getColumn ( int index ) { } public int getColumnCount ( ) { } public TreeColumn [ ] getColumns ( ) { } public TreeItem getItem ( Point point ) { } public int getItemCount ( ) { } int getItemCount ( int hItem ) { } public int getItemHeight ( ) { } public TreeItem [ ] getItems ( ) { } TreeItem [ ] getItems ( int hTreeItem ) { } public boolean getLinesVisible ( ) { } public TreeItem getParentItem ( ) { } public TreeItem [ ] getSelection ( ) { } public int getSelectionCount ( ) { } public TreeItem getTopItem ( ) { } int imageIndex ( Image image ) { } int indexOf ( TreeColumn column ) { } void register ( ) { } boolean releaseItem ( TreeItem item , TVITEM tvItem ) { } void releaseItems ( TreeItem [ ] nodes , TVITEM tvItem ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void removeAll ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void removeTreeListener ( TreeListener listener ) { } public void setInsertMark ( TreeItem item , boolean before ) { } public void setLinesVisible ( boolean show ) { } int scrolledHandle ( ) { } public void selectAll ( ) { } void setBackgroundPixel ( int pixel ) { } void setBounds ( int x , int y , int width , int height , int flags ) { } void setCursor ( ) { } void setCheckboxImageList ( ) { } void setForegroundPixel ( int pixel ) { } public void setHeaderVisible ( boolean show ) { } public void setRedraw ( boolean redraw ) { } void setScrollWidth ( ) { } public void setSelection ( TreeItem [ ] items ) { } public void setTopItem ( TreeItem item ) { } void showItem ( int hItem ) { } public void showColumn ( TreeColumn column ) { } public void showItem ( TreeItem item ) { } public void showSelection ( ) { } void showWidget ( boolean visible ) { } String toolTipText ( NMTTDISPINFO hdr ) { } int topHandle ( ) { } void updateScrollBar ( ) { } int widgetStyle ( ) { } TCHAR windowClass ( ) { } int windowProc ( ) { } int windowProc ( int hwnd , int msg , int wParam , int lParam ) { if ( ( ( hwndParent ) != 0 ) && ( hwnd == ( hwndParent ) ) ) { switch ( msg ) { case OS . WM_MOVE : { sendEvent ( Move ) ; return 0 ; } case OS . WM_SIZE : { setScrollWidth ( ) ; if ( ignoreResize ) return 0 ; setResizeChildren ( false ) ; int code = callWindowProc ( hwnd , WM_SIZE , wParam , lParam ) ; sendEvent ( Resize ) ; if ( isDisposed ( ) ) return 0 ; if ( ( layout ) != null ) { markLayout ( false , false ) ; updateLayout ( false , false ) ; } setResizeChildren ( true ) ; <START_BUG> return 0 ; <END_BUG> } case OS . WM_COMMAND : case OS . WM_NOTIFY : case OS . WM_SYSCOLORCHANGE : { return OS . SendMessage ( handle , msg , wParam , lParam ) ; } case OS . WM_VSCROLL : { SCROLLINFO info = new SCROLLINFO ( ) ; info . cbSize = SCROLLINFO . sizeof ; info . fMask = OS . SIF_ALL ; OS . GetScrollInfo ( hwndParent , SB_VERT , info ) ; OS . SetScrollInfo ( handle , SB_VERT , info , true ) ; int code = OS . SendMessage ( handle , WM_VSCROLL , wParam , lParam ) ; OS . GetScrollInfo ( handle , SB_VERT , info ) ; OS . SetScrollInfo ( hwndParent , SB_VERT , info , true ) ; return code ; } case OS . WM_HSCROLL : { if ( ( ( horizontalBar ) != null ) && ( ( lParam == 0 ) || ( lParam == ( hwndParent ) ) ) ) { wmScroll ( horizontalBar , true , hwndParent , WM_HSCROLL , wParam , lParam ) ; } setScrollWidth ( ) ; break ; } } return callWindowProc ( hwnd , msg , wParam , lParam ) ; } int code = super . windowProc ( handle , msg , wParam , lParam ) ; switch ( msg ) { case OS . WM_CHAR : case OS . WM_IME_CHAR : case OS . WM_KEYDOWN : case OS . WM_KEYUP : case OS . WM_SYSCHAR : case OS . WM_SYSKEYDOWN : case OS . WM_SYSKEYUP : case OS . WM_LBUTTONDBLCLK : case OS . WM_LBUTTONDOWN : case OS . WM_LBUTTONUP : case OS . WM_MBUTTONDBLCLK : case OS . WM_MBUTTONDOWN : case OS . WM_MBUTTONUP : case OS . WM_MOUSEHOVER : case OS . WM_MOUSELEAVE : case OS . WM_MOUSEMOVE : case OS . WM_MOUSEWHEEL : case OS . WM_RBUTTONDBLCLK : case OS . WM_RBUTTONDOWN : case OS . WM_RBUTTONUP : case OS . WM_XBUTTONDBLCLK : case OS . WM_XBUTTONDOWN : case OS . WM_XBUTTONUP : case OS . WM_SIZE : case OS . WM_SETFONT : case OS . WM_TIMER : { updateScrollBar ( ) ; } } return code ; } LRESULT WM_CHAR ( int wParam , int lParam ) { } LRESULT WM_GETOBJECT ( int wParam , int lParam ) { } LRESULT WM_KEYDOWN ( int wParam , int lParam ) { } LRESULT WM_KILLFOCUS ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDBLCLK ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDOWN ( int wParam , int lParam ) { }

Fix:
return code ;