Buggy code:
; static final char [ ] TAB = new char [ ] { 'T' , 'A' , 'B' , 0 } ; static final int MAJOR = 5 ; static final int MINOR = 80 ; Widget ( ) { } public Widget ( Widget parent , int style ) { } void _addListener ( int eventType , Listener listener ) { } public void addListener ( int eventType , Listener listener ) { } public void addDisposeListener ( DisposeListener listener ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } static int checkBits ( int style , int int0 , int int1 , int int2 , int int3 , int int4 , int int5 ) { } void checkOrientation ( Widget parent ) { } void checkOpened ( ) { } void checkParent ( Widget parent ) { } protected void checkSubclass ( ) { } protected void checkWidget ( ) { } void destroyWidget ( ) { } int DeferWindowPos ( int hWinPosInfo , int hWnd , int hWndInsertAfter , int X , int Y , int cx , int cy , int uFlags ) { } public void dispose ( ) { } boolean dragDetect ( int x , int y ) { } boolean dragOverride ( ) { } void error ( int code ) { } boolean filters ( int eventType ) { } Widget findItem ( int id ) { } char [ ] fixMnemonic ( String string ) { } public Object getData ( ) { } public Object getData ( String key ) { } public Display getDisplay ( ) { } Menu getMenu ( ) { } String getName ( ) { } String getNameText ( ) { } public int getStyle ( ) { } boolean hooks ( int eventType ) { } public boolean isDisposed ( ) { } public boolean isListening ( int eventType ) { } boolean isValidSubclass ( ) { } boolean isValidThread ( ) { } void mapEvent ( int hwnd , Event event ) { } GC new_GC ( GCData data ) { } public void notifyListeners ( int eventType , Event event ) { } void postEvent ( int eventType ) { } void postEvent ( int eventType , Event event ) { } void release ( boolean destroy ) { } void releaseChildren ( boolean destroy ) { } void releaseHandle ( ) { } void releaseParent ( ) { } void releaseWidget ( ) { } public void removeListener ( int eventType , Listener listener ) { } protected void removeListener ( int eventType , SWTEventListener listener ) { } public void removeDisposeListener ( DisposeListener listener ) { } boolean sendDragEvent ( int x , int y ) { } void sendEvent ( Event event ) { } void sendEvent ( int eventType ) { } void sendEvent ( int eventType , Event event ) { } void sendEvent ( int eventType , Event event , boolean send ) { } boolean sendKeyEvent ( int type , int msg , int wParam , int lParam ) { } boolean sendKeyEvent ( int type , int msg , int wParam , int lParam , Event event ) { } boolean sendMouseEvent ( int type , int button , int hwnd , int msg , int wParam , int lParam ) { <START_BUG> return sendMouseEvent ( type , button , 0 , 0 , false , hwnd , msg , wParam , lParam ) ; <END_BUG> } boolean sendMouseEvent ( int type , int button , int count , int detail , boolean send , int hwnd , int msg , int wParam , int lParam ) { } public void setData ( Object data ) { } public void setData ( String key , Object value ) { } boolean sendFocusEvent ( int type ) { } boolean setInputState ( Event event , int type ) { } boolean setKeyState ( Event event , int type , int wParam , int lParam ) { } boolean SetWindowPos ( int hWnd , int hWndInsertAfter , int X , int Y , int cx , int cy , int uFlags ) { } boolean showMenu ( int x , int y ) { } public String toString ( ) { } LRESULT wmCaptureChanged ( int hwnd , int wParam , int lParam ) { } LRESULT wmChar ( int hwnd , int wParam , int lParam ) { } LRESULT wmContextMenu ( int hwnd , int wParam , int lParam ) { } LRESULT wmIMEChar ( int hwnd , int wParam , int lParam ) { } LRESULT wmKeyDown ( int hwnd , int wParam , int lParam ) { } LRESULT wmKeyUp ( int hwnd , int wParam , int lParam ) { } LRESULT wmKillFocus ( int hwnd , int wParam , int lParam ) { } LRESULT wmLButtonDblClk ( int hwnd , int wParam , int lParam ) { } LRESULT wmLButtonDown ( int hwnd , int wParam , int lParam ) { } LRESULT wmLButtonUp ( int hwnd , int wParam , int lParam ) { } LRESULT wmMButtonDblClk ( int hwnd , int wParam , int lParam ) { } LRESULT wmMButtonDown ( int hwnd , int wParam , int lParam ) { } LRESULT wmMButtonUp ( int hwnd , int wParam , int lParam ) { } LRESULT wmMouseHover ( int hwnd , int wParam , int lParam ) { } LRESULT wmMouseLeave ( int hwnd , int wParam , int lParam ) { } LRESULT wmMouseMove ( int hwnd , int wParam , int lParam ) { } LRESULT wmMouseWheel ( int hwnd , int wParam , int lParam ) { } LRESULT wmPaint ( int hwnd , int wParam , int lParam ) { } LRESULT wmPrint ( int hwnd , int wParam , int lParam ) { }

Fix:
return sendMouseEvent ( type , button , display . getClickCount ( type , button , hwnd , lParam ) , 0 , false , hwnd , msg , wParam , lParam ) ;