Buggy code:
public class NSView extends NSResponder { public NSView ( ) { } public NSView ( int id ) { } public boolean acceptsFirstMouse ( NSEvent theEvent ) { } public void addCursorRect ( NSRect aRect , NSCursor anObj ) { } public void addSubview_ ( NSView aView ) { } public void addSubview_positioned_relativeTo_ ( NSView aView , int place , NSView otherView ) { } public int addToolTipRect ( NSRect aRect , id anObject , int data ) { } public void addTrackingArea ( NSTrackingArea trackingArea ) { } public int addTrackingRect ( NSRect aRect , id anObject , int data , boolean flag ) { } public void adjustPageHeightNew ( int newBottom , float oldTop , float oldBottom , float bottomLimit ) { } public void adjustPageWidthNew ( int newRight , float oldLeft , float oldRight , float rightLimit ) { } public NSRect adjustScroll ( NSRect newVisible ) { } public void allocateGState ( ) { } public float alphaValue ( ) { } public NSView ancestorSharedWithView ( NSView aView ) { } public boolean autoresizesSubviews ( ) { } public int autoresizingMask ( ) { } public boolean autoscroll ( NSEvent theEvent ) { } public NSArray backgroundFilters ( ) { } public void beginDocument ( ) { } public void beginPageInRect ( NSRect aRect , NSPoint location ) { } public NSBitmapImageRep bitmapImageRepForCachingDisplayInRect ( NSRect rect ) { } public NSRect bounds ( ) { } public float boundsRotation ( ) { } public void cacheDisplayInRect ( NSRect rect , NSBitmapImageRep bitmapImageRep ) { } public boolean canBecomeKeyView ( ) { } public boolean canDraw ( ) { } public NSRect centerScanRect ( NSRect aRect ) { } public NSArray contentFilters ( ) { } public NSPoint convertPoint_fromView_ ( NSPoint aPoint , NSView aView ) { } public NSPoint convertPoint_toView_ ( NSPoint aPoint , NSView aView ) { NSPoint result = new NSPoint ( ) ; <START_BUG> OS . objc_msgSend_stret ( result , this . id , sel_convertPoint_1toView_1 , aPoint , ( aView != null ? aView . id : 0 ) ) ; <END_BUG> return result ; } public NSPoint convertPointFromBase ( NSPoint aPoint ) { } public NSPoint convertPointToBase ( NSPoint aPoint ) { } public NSRect convertRect_fromView_ ( NSRect aRect , NSView aView ) { } public NSRect convertRect_toView_ ( NSRect aRect , NSView aView ) { } public NSRect convertRectFromBase ( NSRect aRect ) { } public NSRect convertRectToBase ( NSRect aRect ) { } public NSSize convertSize_fromView_ ( NSSize aSize , NSView aView ) { } public NSSize convertSize_toView_ ( NSSize aSize , NSView aView ) { } public NSSize convertSizeFromBase ( NSSize aSize ) { } public NSSize convertSizeToBase ( NSSize aSize ) { } public NSData dataWithEPSInsideRect ( NSRect rect ) { } public NSData dataWithPDFInsideRect ( NSRect rect ) { } public static int defaultFocusRingType ( ) { } public static NSMenu defaultMenu ( ) { } public void didAddSubview ( NSView subview ) { } public void discardCursorRects ( ) { } public void display ( ) { } public void displayIfNeeded ( ) { } public void displayIfNeededIgnoringOpacity ( ) { } public void displayIfNeededInRect ( NSRect rect ) { } public void displayIfNeededInRectIgnoringOpacity ( NSRect rect ) { } public void displayRect ( NSRect rect ) { } public void displayRectIgnoringOpacity_ ( NSRect rect ) { } public void displayRectIgnoringOpacity_inContext_ ( NSRect aRect , NSGraphicsContext context ) { } public boolean dragFile ( NSString filename , NSRect rect , boolean aFlag , NSEvent event ) { } public void dragImage ( NSImage anImage , NSPoint viewLocation , NSSize initialOffset , NSEvent event , NSPasteboard pboard , id sourceObj , boolean slideFlag ) { } public boolean dragPromisedFilesOfTypes ( NSArray typeArray , NSRect rect , id sourceObject , boolean aFlag , NSEvent event ) { } public void drawPageBorderWithSize ( NSSize borderSize ) { } public void drawRect ( NSRect rect ) { } public void drawSheetBorderWithSize ( NSSize borderSize ) { } public NSMenuItem enclosingMenuItem ( ) { } public NSScrollView enclosingScrollView ( ) { } public void endDocument ( ) { } public void endPage ( ) { } public boolean enterFullScreenMode ( NSScreen screen , NSDictionary options ) { } public void exitFullScreenModeWithOptions ( NSDictionary options ) { } public int focusRingType ( ) { } public static NSView focusView ( ) { } public NSRect frame ( ) { } public float frameCenterRotation ( ) { } public float frameRotation ( ) { } public int gState ( ) { } public void getRectsBeingDrawn ( int rects , int count ) { } public void getRectsExposedDuringLiveResize ( int exposedRects , int count ) { } public float heightAdjustLimit ( ) { } public NSView hitTest ( NSPoint aPoint ) { } public boolean inLiveResize ( ) { } public NSView initWithFrame ( NSRect frameRect ) { } public boolean isDescendantOf ( NSView aView ) { } public boolean isFlipped ( ) { } public boolean isHidden ( ) { } public boolean isHiddenOrHasHiddenAncestor ( ) { } public boolean isInFullScreenMode ( ) { } public boolean isOpaque ( ) { } public boolean isRotatedFromBase ( ) { } public boolean isRotatedOrScaledFromBase ( ) { } public boolean knowsPageRange ( int range ) { } public NSPoint locationOfPrintRect ( NSRect aRect ) { } public void lockFocus ( ) { } public boolean lockFocusIfCanDraw ( ) { } public boolean lockFocusIfCanDrawInContext ( NSGraphicsContext context ) { } public NSMenu menuForEvent ( NSEvent event ) { } public boolean mouse ( NSPoint aPoint , NSRect aRect ) { } public boolean mouseDownCanMoveWindow ( ) { } public boolean needsDisplay ( ) { } public boolean needsPanelToBecomeKey ( ) { } public boolean needsToDrawRect ( NSRect aRect ) { } public NSView nextKeyView ( ) { } public NSView nextValidKeyView ( ) { } public NSView opaqueAncestor ( ) { } public NSAttributedString pageFooter ( ) { } public NSAttributedString pageHeader ( ) { }

Fix:
OS . objc_msgSend_struct ( result , this . id , sel_convertPoint_1toView_1 , aPoint , ( aView != null ? aView . id : 0 ) ) ;