From: Matti Tahvonen Date: Mon, 28 Dec 2009 13:44:17 +0000 (+0000) Subject: fixes #3607 X-Git-Tag: 6.7.0.beta1~2084^2~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6d79262a291b9cdcd29ad2f5d70f3f390533b67c;p=vaadin-framework.git fixes #3607 svn changeset:10557/svn branch:6.2 --- 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