Buggy code:
public static native final boolean GraphicsPath_IsVisible ( int path , float x , float y , int g ) { } public static native final int GraphicsPath_SetFillMode ( int path , int fillmode ) { } public static native final int GraphicsPath_StartFigure ( int path ) { } public static native final int GraphicsPath_Transform ( int path , int matrix ) { } public static native final int HatchBrush_new ( int hatchStyle , int foreColor , int backColor ) { } public static native final int Image_GetLastStatus ( int image ) { } public static native final int Image_GetPixelFormat ( int bitmap ) { } public static native final int Image_GetWidth ( int image ) { } public static native final int Image_GetHeight ( int image ) { } public static native final int Image_GetPalette ( int image , int palette , int size ) { } public static native final int Image_GetPaletteSize ( int image ) { } public static native final int ImageAttributes_new ( ) { } public static native final void ImageAttributes_delete ( int attrib ) { } public static native final int ImageAttributes_SetWrapMode ( int attrib , int wrap ) { } public static native final int ImageAttributes_SetColorMatrix ( int attrib , float [ ] matrix , int mode , int type ) { } public static native final void HatchBrush_delete ( int brush ) { } public static native final int LinearGradientBrush_new ( PointF point1 , PointF point2 , int color1 , int color2 ) { } public static native final void LinearGradientBrush_delete ( int brush ) { } public static native final int LinearGradientBrush_SetInterpolationColors ( int brush , int [ ] presetColors , float [ ] blendPositions , int count ) { } public static native final int LinearGradientBrush_SetWrapMode ( int brush , int wrapMode ) { } public static native final int Matrix_new ( float m11 , float m12 , float m21 , float m22 , float dx , float dy ) { } public static native final void Matrix_delete ( int matrix ) { } public static native final int Matrix_GetElements ( int matrix , float [ ] m ) { } public static native final int Matrix_Invert ( int matrix ) { } public static native final boolean Matrix_IsIdentity ( int metrix ) { } public static native final int Matrix_Multiply ( int matrix , int matrix1 , int order ) { } public static native final int Matrix_Rotate ( int matrix , float angle , int order ) { } public static native final int Matrix_Scale ( int matrix , float scaleX , float scaleY , int order ) { } public static native final int Matrix_Shear ( int matrix , float shearX , float shearY , int order ) { } public static native final int Matrix_TransformPoints ( int matrix , PointF pts , int count ) { } public static native final int Matrix_TransformPoints ( int matrix , float [ ] pts , int count ) { } public static native final int Matrix_Translate ( int matrix , float offsetX , float offsetY , int order ) { } public static native final int Matrix_SetElements ( int matrix , float m11 , float m12 , float m21 , float m22 , float dx , float dy ) { } public static native final void MoveMemory ( ColorPalette Destination , int SourcePtr , int Length ) { } public static native final void MoveMemory ( BitmapData Destination , int SourcePtr , int Length ) { } public static native final int PathGradientBrush_new ( int path ) { } public static native final void PathGradientBrush_delete ( int brush ) { } public static native final int PathGradientBrush_SetCenterColor ( int brush , int color ) { } public static native final int PathGradientBrush_SetCenterPoint ( int brush , PointF pt ) { } public static native final int PathGradientBrush_SetSurroundColors ( int brush , int [ ] colors , int [ ] count ) { } public static native final int PathGradientBrush_SetGraphicsPath ( int brush , int path ) { } <START_BUG> public static native final int Pen_new ( int brush , float width ) ; <END_BUG> public static native final void Pen_delete ( int pen ) { } public static native final int Pen_GetBrush ( int pen ) { } public static native final int Pen_SetBrush ( int pen , int brush ) { } public static native final int Pen_SetDashPattern ( int pen , float [ ] dashArray , int count ) { } public static native final int Pen_SetDashStyle ( int pen , int dashStyle ) { } public static native final int Pen_SetLineCap ( int pen , int startCap , int endCap , int dashCap ) { } public static native final int Pen_SetLineJoin ( int pen , int lineJoin ) { } public static native final int Pen_SetWidth ( int pen , float width ) { } public static native final int Point_new ( int x , int y ) { } public static native final void Point_delete ( int point ) { } public static native final int Region_new ( int hRgn ) { } public static native final int Region_new ( ) { } public static native final void Region_delete ( int region ) { } public static native final int Region_GetHRGN ( int region , int graphics ) { } public static native final boolean Region_IsInfinite ( int region , int graphics ) { } public static native final int SolidBrush_new ( int color ) { } public static native final void SolidBrush_delete ( int pen ) { } public static native final void StringFormat_delete ( int format ) { } public static native final int StringFormat_Clone ( int format ) { } public static native final int StringFormat_GenericDefault ( ) { } public static native final int StringFormat_GenericTypographic ( ) { }

Fix:
public static native final int Pen_new ( int color , float width ) ;