Buggy code:
public class ToolBar extends Composite { int lastFocusId ; ToolItem [ ] items ; boolean ignoreResize ; boolean ignoreMouse ; ImageList imageList ; ImageList disabledImageList ; ImageList hotImageList ; static final int ToolBarProc ; static final TCHAR ToolBarClass = new TCHAR ( 0 , OS . TOOLBARCLASSNAME , true ) ; static final int DEFAULT_WIDTH = 24 ; static final int DEFAULT_HEIGHT = 22 ; public ToolBar ( Composite parent , int style ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } public Rectangle computeTrim ( int x , int y , int width , int height ) { } void createHandle ( ) { super . createHandle ( ) ; state &= ~ ( CANVAS ) ; <START_BUG> if ( ( OS . COMCTL32_MAJOR ) < 6 ) { <END_BUG> int bits = OS . GetWindowLong ( handle , GWL_STYLE ) ; bits &= ~ ( OS . TBSTYLE_TRANSPARENT ) ; OS . SetWindowLong ( handle , GWL_STYLE , bits ) ; } int hFont = OS . GetStockObject ( SYSTEM_FONT ) ; OS . SendMessage ( handle , WM_SETFONT , hFont , 0 ) ; OS . SendMessage ( handle , TB_BUTTONSTRUCTSIZE , sizeof , 0 ) ; OS . SendMessage ( handle , TB_SETBITMAPSIZE , 0 , 0 ) ; OS . SendMessage ( handle , TB_SETBUTTONSIZE , 0 , 0 ) ; int bits = ( ( OS . TBSTYLE_EX_DRAWDDARROWS ) | ( OS . TBSTYLE_EX_MIXEDBUTTONS ) ) | ( OS . TBSTYLE_EX_HIDECLIPPEDBUTTONS ) ; if ( ( OS . COMCTL32_MAJOR ) >= 6 ) bits |= OS . TBSTYLE_EX_DOUBLEBUFFER ; OS . SendMessage ( handle , TB_SETEXTENDEDSTYLE , 0 , bits ) ; } void createItem ( ToolItem item , int index ) { } void createWidget ( ) { } int defaultBackground ( ) { } void destroyItem ( ToolItem item ) { } void enableWidget ( boolean enabled ) { } ImageList getDisabledImageList ( ) { } ImageList getHotImageList ( ) { } ImageList getImageList ( ) { } public ToolItem getItem ( int index ) { } public ToolItem getItem ( Point point ) { } public int getItemCount ( ) { } public ToolItem [ ] getItems ( ) { } public int getRowCount ( ) { } public int indexOf ( ToolItem item ) { } void layoutItems ( ) { } boolean mnemonicHit ( char ch ) { } boolean mnemonicMatch ( char ch ) { } void releaseWidget ( ) { } void removeControl ( Control control ) { } void setBounds ( int x , int y , int width , int height , int flags ) { } void setDefaultFont ( ) { } void setDisabledImageList ( ImageList imageList ) { } public void setFont ( Font font ) { } void setHotImageList ( ImageList imageList ) { } void setImageList ( ImageList imageList ) { } public boolean setParent ( Composite parent ) { } void setRowCount ( int count ) { } boolean setTabItemFocus ( ) { } String toolTipText ( NMTTDISPINFO hdr ) { } int widgetStyle ( ) { } TCHAR windowClass ( ) { } int windowProc ( ) { } LRESULT WM_CAPTURECHANGED ( int wParam , int lParam ) { } LRESULT WM_CHAR ( int wParam , int lParam ) { } LRESULT WM_COMMAND ( int wParam , int lParam ) { } LRESULT WM_GETDLGCODE ( int wParam , int lParam ) { } LRESULT WM_KEYDOWN ( int wParam , int lParam ) { } LRESULT WM_KILLFOCUS ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDOWN ( int wParam , int lParam ) { } LRESULT WM_LBUTTONUP ( int wParam , int lParam ) { } LRESULT WM_NOTIFY ( int wParam , int lParam ) { } LRESULT WM_SETFOCUS ( int wParam , int lParam ) { } LRESULT WM_SIZE ( int wParam , int lParam ) { } LRESULT WM_WINDOWPOSCHANGING ( int wParam , int lParam ) { } LRESULT wmCommandChild ( int wParam , int lParam ) { } LRESULT wmNotifyChild ( int wParam , int lParam ) { } }

Fix:
if ( ( ( OS . COMCTL32_MAJOR ) < 6 ) || ( ! ( OS . IsAppThemed ( ) ) ) ) {