• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Java bridge hangs app when calling method that allocates a java.awt.Rectangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java bridge hangs app when calling method that allocates a java.awt.Rectangle


  • Subject: Java bridge hangs app when calling method that allocates a java.awt.Rectangle
  • From: Josh and Susan Nan <email@hidden>
  • Date: Fri, 14 Mar 2003 01:35:02 -0500

I have a Java class with a member variable of type java.awt.Rectangle. This variable is initialized in a method like so:

MyClass.java
==========

import java.awt.*;
class MyClass {

protected java.awt.Rectange _myRect;

public void initRect() {
_myRect = new Rectangle(0,0,5,5);
System.out.println("initRect called");
}

}

When I call the method initRect on an instance of myClass from an Objective-C UI app, the UI hangs after returning from the Java method. The java call completes as expected; the debug statement in the code sample will be printed. Also, I've run the java code through the debugger and the Rectange object is allocated and initialzed correctly.

I get the same behavior if I have an awt.Dimension used in the same way. Other awt classes, like Point, seem to work fine. I don't believe there's a heap or class path problem.

Could it be hanging since the lesser used awt classes do not have mappings in the jobs files? I thought this was only necessary for return types that cross the bridge.

Thanks in advance for the help.

-Josh
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa and standard Java
  • Next by Date: Re: Printing on both sides from a subclassed NSView
  • Previous by thread: Odd crash with a drawer
  • Next by thread: can't set double action in NSOutlineView
  • Index(es):
    • Date
    • Thread