more on hotjava

Date view Thread view Subject view Author view

From: Godmar Back (gback@marker.cs.utah.edu)
Date: Tue Nov 17 1998 - 04:10:03 EST


So, the thing i'm currently hitting is this:

java.lang.NoSuchMethodError: java/awt/Component.getTreeLock()Ljava/lang/Object;
        at sunw/hotjava/misc/Globals.getAwtLock(420)
        at sunw/hotjava/doc/Document.setProperty(484)
        at sunw/hotjava/doc/Document.<init>(210)
        at sunw/hotjava/doc/Document.<init>(171)
        at sunw/hotjava/ui/HotList.writeHTMLFile(1247)
        at sunw/hotjava/ui/HotListWriter.run(87)
        at java/lang/Thread.run(140)

Sure enough, there's no "getTreeLock()" method in Component.
So I looked closer whether I could just add one, and it seems that
Component.java doesn't have a single use of the word "synchronized"
in it.

I could of course return "this" or some other dummy object,
but should Component.java be made thread-safe?
Also, does that mean Kaffe's AWT is not thread-safe?

        - Godmar


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:03 EDT