Buggy code:
void drawBitmapTransparent ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple , BITMAP bm , int imgWidth , int imgHeight ) { } void drawBitmap ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple , BITMAP bm , int imgWidth , int imgHeight ) { } 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 ) { } 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 ) { } 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 ( ) { 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 ( ) { } void initGdip ( ) { } 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 ) { } public void setClipping ( Rectangle rect ) { } public void setClipping ( Region region ) { }

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