aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/Component.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/Component.java')
-rw-r--r--libjava/java/awt/Component.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/libjava/java/awt/Component.java b/libjava/java/awt/Component.java
index f1e24a4..5c61b91 100644
--- a/libjava/java/awt/Component.java
+++ b/libjava/java/awt/Component.java
@@ -38,6 +38,12 @@ public abstract class Component implements ImageObserver, MenuContainer,
RIGHT_ALIGNMENT = 1.0f,
TOP_ALIGNMENT = 0.0f;
+ /* Make the treelock a String so that it can easily be identified
+ in debug dumps. We clone the String in order to avoid a conflict in
+ the unlikely event that some other package uses exactly the same string
+ as a lock object. */
+ static Object treeLock = new String("AWT_TREE_LOCK");
+
/* Serialized fields from the serialization spec. */
// FIXME: Default values?
int x;
@@ -71,8 +77,6 @@ public abstract class Component implements ImageObserver, MenuContainer,
transient Container parent;
transient java.awt.peer.ComponentPeer peer;
- transient Object treeLock;
-
transient ComponentListener componentListener;
transient FocusListener focusListener;
transient KeyListener keyListener;