Buggy code:
public void drawRectangle ( Rectangle rect ) { } public void drawRoundRectangle ( int x , int y , int width , int height , int arcWidth , int arcHeight ) { } void drawRoundRectangleGdip ( int gdipGraphics , int pen , int x , int y , int width , int height , int arcWidth , int arcHeight ) { } public void drawString ( String string , int x , int y ) { } public void drawString ( String string , int x , int y , boolean isTransparent ) { } public void drawText ( String string , int x , int y ) { } public void drawText ( String string , int x , int y , boolean isTransparent ) { } public void drawText ( String string , int x , int y , int flags ) { } public boolean equals ( Object object ) { } public void fillArc ( int x , int y , int width , int height , int startAngle , int arcAngle ) { } public void fillGradientRectangle ( int x , int y , int width , int height , boolean vertical ) { } public void fillOval ( int x , int y , int width , int height ) { } public void fillPath ( Path path ) { } public void fillPolygon ( int [ ] pointArray ) { } public void fillRectangle ( int x , int y , int width , int height ) { } public void fillRectangle ( Rectangle rect ) { } public void fillRoundRectangle ( int x , int y , int width , int height , int arcWidth , int arcHeight ) { } void fillRoundRectangleGdip ( int gdipGraphics , int brush , int x , int y , int width , int height , int arcWidth , int arcHeight ) { } void flush ( ) { } public int getAdvanceWidth ( char ch ) { } public boolean getAdvanced ( ) { } public int getAlpha ( ) { } public int getAntialias ( ) { } public Color getBackground ( ) { } public Pattern getBackgroundPattern ( ) { } public int getCharWidth ( char ch ) { } public Rectangle getClipping ( ) { } public void getClipping ( Region region ) { } int getCodePage ( ) { } int getFgBrush ( ) { } public int getFillRule ( ) { } public Font getFont ( ) { } public FontMetrics getFontMetrics ( ) { } public Color getForeground ( ) { } public Pattern getForegroundPattern ( ) { } public GCData getGCData ( ) { } public int getInterpolation ( ) { } public LineAttributes getLineAttributes ( ) { } public int getLineCap ( ) { } public int [ ] getLineDash ( ) { } public int getLineJoin ( ) { } public int getLineStyle ( ) { } public int getLineWidth ( ) { } public int getStyle ( ) { } public int getTextAntialias ( ) { } public void getTransform ( Transform transform ) { } public boolean getXORMode ( ) { } void initGdip ( ) { } int identity ( ) { } void init ( Drawable drawable , GCData data , int hDC ) { } public int hashCode ( ) { } public boolean isClipped ( ) { } public boolean isDisposed ( ) { } float measureSpace ( int font , int format ) { } public void setAdvanced ( boolean advanced ) { } public void setAntialias ( int antialias ) { } public void setAlpha ( int alpha ) { } public void setBackground ( Color color ) { } public void setBackgroundPattern ( Pattern pattern ) { } void setClipping ( int clipRgn ) { } public void setClipping ( int x , int y , int width , int height ) { } public void setClipping ( Path path ) { if ( ( handle ) == 0 ) SWT . error ( ERROR_GRAPHIC_DISPOSED ) ; if ( ( path != null ) && ( path . isDisposed ( ) ) ) SWT . error ( ERROR_INVALID_ARGUMENT ) ; setClipping ( 0 ) ; if ( path != null ) { initGdip ( ) ; int mode = ( ( OS . GetPolyFillMode ( handle ) ) == ( OS . WINDING ) ) ? Gdip . FillModeWinding : Gdip . FillModeAlternate ; Gdip . GraphicsPath_SetFillMode ( path . handle , mode ) ; <START_BUG> Gdip . Graphics_SetClip ( data . gdipGraphics , path . handle ) ; <END_BUG> } } public void setClipping ( Rectangle rect ) { } public void setClipping ( Region region ) { } public void setFillRule ( int rule ) { } public void setFont ( Font font ) { } public void setForeground ( Color color ) { } public void setForegroundPattern ( Pattern pattern ) { } public void setInterpolation ( int interpolation ) { } public void setLineAttributes ( LineAttributes attributes ) { } public void setLineCap ( int cap ) { } public void setLineDash ( int [ ] dashes ) { } public void setLineJoin ( int join ) { } public void setLineStyle ( int lineStyle ) { } public void setLineWidth ( int lineWidth ) { } public void setXORMode ( boolean xor ) { } public void setTextAntialias ( int antialias ) { } public void setTransform ( Transform transform ) { } public Point stringExtent ( String string ) { } public Point textExtent ( String string ) { } public Point textExtent ( String string , int flags ) { } public String toString ( ) { } public static GC win32_new ( Drawable drawable , GCData data ) { } public static GC win32_new ( int hDC , GCData data ) { } }

Fix:
Gdip . Graphics_SetClipPath ( data . gdipGraphics , path . handle ) ;