Buggy code:
public static final int S_setPolicyDelegate = Cocoa . sel_registerName ( "setPolicyDelegate:" ) ; public static final int S_setResourceLoadDelegate = Cocoa . sel_registerName ( "setResourceLoadDelegate:" ) ; public static final int S_setStatusText = Cocoa . sel_registerName ( "setStatusText:" ) ; public static final int S_setUIDelegate = Cocoa . sel_registerName ( "setUIDelegate:" ) ; public static final int S_sharedHTTPCookieStorage = Cocoa . sel_registerName ( "sharedHTTPCookieStorage" ) ; public static final int S_stopLoading = Cocoa . sel_registerName ( "stopLoading:" ) ; public static final int S_stringByEvaluatingJavaScriptFromString = Cocoa . sel_registerName ( "stringByEvaluatingJavaScriptFromString:" ) ; public static final int S_takeStringURLFrom = Cocoa . sel_registerName ( "takeStringURLFrom:" ) ; public static final int S_use = Cocoa . sel_registerName ( "use" ) ; public static final int S_webFrame = Cocoa . sel_registerName ( "webFrame" ) ; public static final int S_URL = Cocoa . sel_registerName ( "URL" ) ; public static final int S_URLWithString = Cocoa . sel_registerName ( "URLWithString:" ) ; public static final int S_systemStatusBar = Cocoa . sel_registerName ( "systemStatusBar" ) ; public static final int S_statusItemWithLength = Cocoa . sel_registerName ( "statusItemWithLength:" ) ; public static final int S_setTitle = Cocoa . sel_registerName ( "setTitle:" ) ; public static final int S_setHighlightMode = Cocoa . sel_registerName ( "setHighlightMode:" ) ; public static final int S_setToolTip = Cocoa . sel_registerName ( "setToolTip:" ) ; public static final int S_setImage = Cocoa . sel_registerName ( "setImage:" ) ; public static final int S_removeStatusItem = Cocoa . sel_registerName ( "removeStatusItem:" ) ; public static final int S_initWithSize = Cocoa . sel_registerName ( "initWithSize:" ) ; public static final int S_initWithFrame = Cocoa . sel_registerName ( "initWithFrame:" ) ; public static final int S_initWithProc_frame_user_data = Cocoa . sel_registerName ( "initWithProc:frame:user_data:" ) ; public static final int S_lockFocus = Cocoa . sel_registerName ( "lockFocus" ) ; public static final int S_unlockFocus = Cocoa . sel_registerName ( "unlockFocus" ) ; public static final int S_currentContext = Cocoa . sel_registerName ( "currentContext" ) ; public static final int S_graphicsPort = Cocoa . sel_registerName ( "graphicsPort" ) ; public static final int S_setLength = Cocoa . sel_registerName ( "setLength:" ) ; public static final int S_view = Cocoa . sel_registerName ( "view" ) ; public static final int S_setView = Cocoa . sel_registerName ( "setView:" ) ; public static final int S_clickCount = Cocoa . sel_registerName ( "clickCount" ) ; public static final int S_drawStatusBarBackgroundInRect_withHighlight = Cocoa . sel_registerName ( "drawStatusBarBackgroundInRect:withHighlight:" ) ; public static final int S_drawRect = Cocoa . sel_registerName ( "drawRect:" ) ; public static final int S_setNeedsDisplay = Cocoa . sel_registerName ( "setNeedsDisplay:" ) ; public static final int S_getLocation = Cocoa . sel_registerName ( "getLocation:" ) ; public static final int S_initWithImage_hotSpot = Cocoa . sel_registerName ( "initWithImage:hotSpot:" ) ; public static final int S_set = Cocoa . sel_registerName ( "set" ) ; public static final int S_init = Cocoa . sel_registerName ( "init" ) ; public static final int S_addRepresentation = Cocoa . sel_registerName ( "addRepresentation:" ) ; public static final int S_initWithBitmapDataPlanes = Cocoa . sel_registerName ( "initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:" ) ; public static final int S_bitmapData = Cocoa . sel_registerName ( "bitmapData" ) ; public static final int NSAlphaFirstBitmapFormat = 1 << 0 ; public static final int NSAlphaNonpremultipliedBitmapFormat = 1 << 1 ; public static native final int HIWebViewCreate ( int [ ] outView ) { } public static native final int HIWebViewGetWebView ( int inView ) { } public static native final void WebInitForCarbon ( ) { } public static native final int objc_getClass ( byte [ ] className ) { } public static native final int objc_msgSend ( int object , int selector ) { } public static native final int objc_msgSend ( int object , int selector , int arg0 ) { } public static native final int objc_msgSend ( int object , int selector , float arg0 ) { } public static native final int objc_msgSend ( int object , int selector , NSSize arg0 ) { } public static native final int objc_msgSend ( int object , int selector , NSRect arg0 ) { } public static native final int objc_msgSend ( int object , int selector , int arg0 , NSRect arg1 , int arg2 ) { } public static native final int objc_msgSend ( int object , int selector , NSRect arg0 , int arg1 ) { } public static native final int objc_msgSend ( int object , int selector , NSPoint arg0 , int arg1 ) { } public static native final int objc_msgSend ( int object , int selector , int arg0 , NSPoint arg1 ) { } public static native final int objc_msgSend ( int object , int selector , NSPoint arg0 ) { } public static native final int objc_msgSend ( int object , int selector , int arg0 , int arg1 ) { } public static native final int objc_msgSend ( int object , int selector , int arg0 , int arg1 , int arg2 ) { } public static native final int objc_msgSend ( int object , int selector , int arg0 , int arg1 , int arg2 , int arg3 ) { } public static native final int objc_msgSend ( int object , int selector , int [ ] arg0 , int arg1 , int arg2 , int arg3 , int arg4 , int arg5 , int arg6 , int arg7 , int arg8 , int arg9 , int arg10 ) { } public static native final int sel_registerName ( byte [ ] selectorName ) { } public static native final int NSDeviceRGBColorSpace ( ) { } public static native final void memcpy ( NSRect dest , int src , int size ) { } static byte [ ] ascii ( String name ) { } static int sel_registerName ( String selector ) { } static int objc_getClass ( String className ) { } <START_BUG> public static native final long getNativeHandleFromAWT ( Object frame ) ; <END_BUG> }

Fix:
public static native final int getNativeHandleFromAWT ( Object frame ) ;