Buggy code:
public class Composite extends Scrollable { Layout layout ; Control [ ] tabList ; int scrolledVisibleRgn ; int siblingsVisibleRgn ; int layoutCount ; int backgroundMode ; Composite ( ) { } public Composite ( Composite parent , int style ) { } Control [ ] _getChildren ( ) { } Control [ ] _getTabList ( ) { } boolean acceptsFirstResponder ( ) { } public void changed ( Control [ ] changed ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } protected void checkSubclass ( ) { } Control [ ] computeTabList ( ) { } NSView contentView ( ) { } void createHandle ( ) { } void createHandle ( NSView parent ) { state |= CANVAS ; NSRect rect = new NSRect ( ) ; <START_BUG> if ( ( ( style ) & ( ( ( SWT . BORDER ) | ( SWT . V_SCROLL ) ) | ( SWT . H_SCROLL ) ) ) != 0 ) { <END_BUG> SWTScrollView scrollWidget = ( ( SWTScrollView ) ( new SWTScrollView ( ) . alloc ( ) ) ) ; scrollWidget . initWithFrame ( rect ) ; scrollWidget . setDrawsBackground ( false ) ; if ( ( ( style ) & ( SWT . H_SCROLL ) ) != 0 ) scrollWidget . setHasHorizontalScroller ( true ) ; if ( ( ( style ) & ( SWT . V_SCROLL ) ) != 0 ) scrollWidget . setHasVerticalScroller ( true ) ; scrollWidget . setBorderType ( ( hasBorder ( ) ? OS . NSBezelBorder : OS . NSNoBorder ) ) ; scrollWidget . setTag ( jniRef ) ; scrollView = scrollWidget ; rect . width = rect . height = 100000 ; } SWTView widget = ( ( SWTView ) ( new SWTView ( ) . alloc ( ) ) ) ; widget . initWithFrame ( rect ) ; widget . setTag ( jniRef ) ; view = widget ; if ( ( scrollView ) != null ) { scrollView . setDocumentView ( view ) ; if ( parent != null ) parent . addSubview_ ( scrollView ) ; } else { if ( parent != null ) parent . addSubview_ ( view ) ; } } 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 boolean getLayoutDeferred ( ) { } public Control [ ] getTabList ( ) { } boolean hooksKeys ( ) { } public boolean isLayoutDeferred ( ) { } boolean isTabGroup ( ) { } 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 Hint , boolean changed ) { } void releaseChildren ( boolean destroy ) { } void releaseWidget ( ) { } void removeControl ( Control control ) { } public void setBackgroundMode ( int mode ) { } int setBounds ( int x , int y , int width , int height , boolean move , boolean resize ) { } public boolean setFocus ( ) { } public void setLayout ( Layout layout ) { } public void setLayoutDeferred ( boolean defer ) { } boolean setScrollBarVisible ( ScrollBar bar , boolean visible ) { } boolean setTabGroupFocus ( ) { } public void setTabList ( Control [ ] tabList ) { } int traversalCode ( int key , int theEvent ) { } void updateBackgroundMode ( ) { } void updateLayout ( boolean all ) { } }

Fix:
if ( ( ( ( style ) & ( ( SWT . V_SCROLL ) | ( SWT . H_SCROLL ) ) ) != 0 ) || ( hasBorder ( ) ) ) {