From 6d79262a291b9cdcd29ad2f5d70f3f390533b67c Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Mon, 28 Dec 2009 13:44:17 +0000 Subject: [PATCH] fixes #3607 svn changeset:10557/svn branch:6.2 --- src/com/vaadin/ui/AbstractComponent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java index 68910bb686..247354ccc9 100644 --- a/src/com/vaadin/ui/AbstractComponent.java +++ b/src/com/vaadin/ui/AbstractComponent.java @@ -521,7 +521,8 @@ public abstract class AbstractComponent implements Component, MethodEventSource } if (parent != null && this.parent != null) { - throw new IllegalStateException("Component already has a parent."); + throw new IllegalStateException(getClass().getName() + + " already has a parent."); } // Send detach event if the component have been connected to a window -- 2.39.5