Buggy code:
Button defaultButton ; Button saveDefault ; int swFlags ; int hAccel ; int nAccel ; boolean moved ; boolean resized ; boolean opened ; int oldX = OS . CW_USEDEFAULT ; int oldY = OS . CW_USEDEFAULT ; int oldWidth = OS . CW_USEDEFAULT ; int oldHeight = OS . CW_USEDEFAULT ; Decorations ( ) { } public Decorations ( Composite parent , int style ) { } void addMenu ( Menu menu ) { } void bringToTop ( ) { } static int checkStyle ( int style ) { } void checkBorder ( ) { } void checkOpened ( ) { } protected void checkSubclass ( ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } void closeWidget ( ) { } Control computeTabGroup ( ) { } Control computeTabRoot ( ) { } public Rectangle computeTrim ( int x , int y , int width , int height ) { } void createAccelerators ( ) { } void createHandle ( ) { } void createWidget ( ) { } void destroyAccelerators ( ) { } public void dispose ( ) { } Menu findMenu ( int hMenu ) { } void fixDecorations ( Decorations newDecorations , Control control , Menu [ ] menus ) { } public Rectangle getBounds ( ) { } public Rectangle getClientArea ( ) { } public Button getDefaultButton ( ) { } public Image getImage ( ) { } public Image [ ] getImages ( ) { } public Point getLocation ( ) { } public boolean getMaximized ( ) { } public Menu getMenuBar ( ) { } public boolean getMinimized ( ) { } String getNameText ( ) { } public Point getSize ( ) { } public String getText ( ) { } public boolean isReparentable ( ) { } boolean isTabGroup ( ) { } boolean isTabItem ( ) { } Decorations menuShell ( ) { } void releaseWidget ( ) { } void removeMenu ( Menu menu ) { } boolean restoreFocus ( ) { } void saveFocus ( ) { } void setBounds ( int x , int y , int width , int height , int flags , boolean defer ) { } public void setDefaultButton ( Button button ) { } void setDefaultButton ( Button button , boolean save ) { } public void setImage ( Image image ) { } void setImages ( Image image , Image [ ] images ) { } public void setImages ( Image [ ] images ) { } public void setMaximized ( boolean maximized ) { } public void setMenuBar ( Menu menu ) { } public void setMinimized ( boolean minimized ) { } void setParent ( ) { } void setPlacement ( int x , int y , int width , int height , int flags ) { } void setSavedFocus ( Control control ) { } void setSystemMenu ( ) { } public void setText ( String string ) { } public void setVisible ( boolean visible ) { } boolean translateAccelerator ( MSG msg ) { } boolean translateMenuAccelerator ( MSG msg ) { } boolean translateMDIAccelerator ( MSG msg ) { } boolean traverseDecorations ( boolean next ) { } boolean traverseItem ( boolean next ) { } boolean traverseReturn ( ) { } CREATESTRUCT widgetCreateStruct ( ) { } int widgetExtStyle ( ) { } int widgetParent ( ) { } int widgetStyle ( ) { } int windowProc ( int hwnd , int msg , int wParam , int lParam ) { } LRESULT WM_ACTIVATE ( int wParam , int lParam ) { LRESULT result = super . WM_ACTIVATE ( wParam , lParam ) ; if ( result != null ) return result ; if ( ( OS . GetParent ( lParam ) ) == ( handle ) ) { TCHAR buffer = new TCHAR ( 0 , 128 ) ; OS . GetClassName ( lParam , buffer , buffer . length ( ) ) ; String className = buffer . toString ( 0 , buffer . strlen ( ) ) ; if ( className . equals ( AWT_WINDOW_CLASS ) ) { <START_BUG> return LRESULT . ONE ; <END_BUG> } } if ( ( wParam & 65535 ) != 0 ) { if ( ( wParam > > 16 ) != 0 ) return result ; Control control = display . findControl ( lParam ) ; if ( ( control == null ) || ( control instanceof Shell ) ) { if ( ( this ) instanceof Shell ) { sendEvent ( Activate ) ; if ( isDisposed ( ) ) return LRESULT . ZERO ; } } if ( restoreFocus ( ) ) return LRESULT . ZERO ; } else { Control control = display . findControl ( lParam ) ; if ( ( control == null ) || ( control instanceof Shell ) ) { if ( ( this ) instanceof Shell ) { sendEvent ( Deactivate ) ; if ( isDisposed ( ) ) return LRESULT . ZERO ; Shell shell = getShell ( ) ; shell . setActiveControl ( null ) ; if ( isDisposed ( ) ) return LRESULT . ZERO ; } } saveFocus ( ) ; } return result ; } LRESULT WM_CLOSE ( int wParam , int lParam ) { } LRESULT WM_HOTKEY ( int wParam , int lParam ) { } LRESULT WM_KILLFOCUS ( int wParam , int lParam ) { } LRESULT WM_MOVE ( int wParam , int lParam ) { } LRESULT WM_NCACTIVATE ( int wParam , int lParam ) { } LRESULT WM_QUERYOPEN ( int wParam , int lParam ) { } LRESULT WM_SETFOCUS ( int wParam , int lParam ) { } LRESULT WM_SIZE ( int wParam , int lParam ) { } LRESULT WM_SYSCOMMAND ( int wParam , int lParam ) { } LRESULT WM_WINDOWPOSCHANGING ( int wParam , int lParam ) { } }

Fix:
return LRESULT . ZERO ;