Buggy code:
void drawImageAlpha ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple , int imgWidth , int imgHeight ) { } void drawImageMask ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple , int imgWidth , int imgHeight ) { } void drawImageXRender ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple , int imgWidth , int imgHeight , int maskPixmap , int maskType ) { } int scale ( int src , int srcX , int srcY , int srcWidth , int srcHeight , int destWidth , int destHeight ) { } public void drawLine ( int x1 , int y1 , int x2 , int y2 ) { } public void drawOval ( int x , int y , int width , int height ) { } public void drawPath ( Path path ) { } public void drawPoint ( int x , int y ) { } public void drawPolygon ( int [ ] pointArray ) { } public void drawPolyline ( int [ ] pointArray ) { } void drawPolyline ( int cairo , int [ ] pointArray , boolean close ) { } public void drawRectangle ( int x , int y , int width , int height ) { } public void drawRectangle ( Rectangle rect ) { } public void drawRoundRectangle ( 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 ) { } int fixMnemonic ( char [ ] buffer ) { } 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 ) { } public int getFillRule ( ) { } public Font getFont ( ) { } public FontMetrics getFontMetrics ( ) { } public Color getForeground ( ) { } public Pattern getForegroundPattern ( ) { } public GCData getGCData ( ) { } public int getInterpolation ( ) { } public LineAttributes getLineAttributes ( ) { if ( ( handle ) == 0 ) SWT . error ( ERROR_GRAPHIC_DISPOSED ) ; float [ ] dashes = null ; if ( ( data . lineDashes ) != null ) { dashes = new float [ data . lineDashes . length ] ; System . arraycopy ( data . lineDashes , 0 , dashes , 0 , dashes . length ) ; } <START_BUG> return new LineAttributes ( data . lineWidth , data . lineStyle , data . lineCap , data . lineJoin , dashes , data . lineDashesOffset , data . lineMiterLimit ) ; <END_BUG> } 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 ( ) { } public int hashCode ( ) { } void init ( Drawable drawable , GCData data , int gdkGC ) { } void initCairo ( ) { } public boolean isClipped ( ) { } public boolean isDisposed ( ) { } boolean isIdentity ( double [ ] matrix ) { } public void setAdvanced ( boolean advanced ) { } public void setAlpha ( int alpha ) { } public void setAntialias ( int antialias ) { } public void setBackground ( Color color ) { } public void setBackgroundPattern ( Pattern pattern ) { } static void setCairoFont ( int cairo , Font font ) { } static void setCairoFont ( int cairo , int font ) { } static void setCairoClip ( int cairo , int clipRgn ) { } static void setCairoPatternColor ( int pattern , int offset , Color c , int alpha ) { }

Fix:
return new LineAttributes ( data . lineWidth , data . lineCap , data . lineJoin , data . lineStyle , dashes , data . lineDashesOffset , data . lineMiterLimit ) ;