Re: [OpenMap Users] Openmap 4.6, OS X Java 1.4.2 deadlock

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Mar 03 2004 - 11:21:41 EST

Hi Alexander,

Thanks for the test case, it helped track this down. Turns out, your
example was locking up on the AreaShapeLayer.getMapMouseListener
method, which is synchronized. If you remove that designation from
that method (which now seems unnecessary in the first place), your
example works where it previously locked up. I'm going to make similar
modifications throughout the package.

Thanks again,

Don

On Mar 3, 2004, at 8:33 AM, alexander sokolov wrote:

>
> Hi,
>
> It seems that the version of openmap 4.6 in certain situations cause
> deadlock on OS X java 1.4.2
> (probably due to "outstanding issues" in Apple Java 1.4.2
> radar#3163400)
>
> It happens during adding a shapeLayer to the mapBean after call method
> setMap(map) of the mouseDelegator
>
>
> map.add(layer); // works fine
>
> mouseDelegator.setDefaultMouseModes();
> mouseDelegator.setActiveMouseModeWithID("Gestures");
> mouseDelegator.setMap(map);
>
> /*
> * deadlock on Mac OS X 10.3.2, Java: 1.4.2_03, (may be
> Radar#3163400)
> */
> // map.add(layer); // deadlock
>
>
> An example (with workaround) is in the attachment
>
> Regards
> Alexander
>
>
> <deadlock>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Mar 3 11:22:17 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT