Buggy code:
public void copyArea ( int srcX , int srcY , int width , int height , int destX , int destY ) { } public void copyArea ( int srcX , int srcY , int width , int height , int destX , int destY , boolean paint ) { } static int createGdipFont ( int hDC , int hFont , int graphics , int fontCollection , int [ ] outFamily , int [ ] outFont ) { } static void destroyGdipBrush ( int brush ) { } void destroy ( ) { } void disposeGdip ( ) { } public void drawArc ( int x , int y , int width , int height , int startAngle , int arcAngle ) { } public void drawFocus ( int x , int y , int width , int height ) { } public void drawImage ( Image image , int x , int y ) { } public void drawImage ( Image image , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight ) { } void drawImage ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple ) { } void drawIcon ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple ) { } void drawBitmap ( Image srcImage , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple ) { } void drawBitmapAlpha ( 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 drawBitmapTransparentByClipping ( int srcHdc , int maskHdc , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple , int imgWidth , int imgHeight ) { } void drawBitmapMask ( Image srcImage , int srcColor , int srcMask , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , boolean simple , int imgWidth , int imgHeight , boolean offscreen ) { } 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 ) { } boolean useGDIP ( int hdc , char [ ] buffer ) { <START_BUG> if ( ! ( OS . IsUnicode ) ) <END_BUG> return false ; short [ ] glyphs = new short [ buffer . length ] ; OS . GetGlyphIndicesW ( hdc , buffer , buffer . length , glyphs , GGI_MARK_NONEXISTING_GLYPHS ) ; for ( int i = 0 ; i < ( glyphs . length ) ; i ++ ) { if ( ( glyphs [ i ] ) == ( - 1 ) ) { switch ( buffer [ i ] ) { case '\t' : case '\n' : case '\r' : break ; default : return true ; } } } return false ; } void drawText ( int gdipGraphics , String string , int x , int y , int flags , Point size ) { } RectF drawText ( int gdipGraphics , char [ ] buffer , int start , int length , int x , int y , int flags , int mnemonicIndex , TEXTMETRIC lptm , boolean draw ) { } void drawTextGDIP ( int gdipGraphics , String string , int x , int y , int flags , boolean draw , Point size ) { } public boolean equals ( Object object ) { }

Fix:
if ( ( OS . IsWinCE ) || ( ! ( OS . IsUnicode ) ) )