From: Marc Englund Date: Thu, 11 Feb 2010 10:24:59 +0000 (+0000) Subject: Merged from 6.2: Better warning & removed old commented code for #3974 (multiple... X-Git-Tag: 6.7.0.beta1~2051 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1bd9c8f2a9f063dfc36d0cbb488df16dae00f37;p=vaadin-framework.git Merged from 6.2: Better warning & removed old commented code for #3974 (multiple entrypoints detection) svn changeset:11270/svn branch:6.3 --- diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java index 060c4dedf1..5bcf613f6d 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java @@ -148,20 +148,14 @@ public class ApplicationConfiguration { int lastdot = module.lastIndexOf("."); String base = module.substring(0, lastdot); String simpleName = module.substring(lastdot + 1); - // TODO figure out (ask around) WTF this is almost-removed - // if (!wsname.startsWith(base) || !wsname.endsWith(simpleName)) { - // // WidgetSet module name does not match implementation name; - // // probably inherited WidgetSet with entry-point. Skip. - // GWT.log("Ignored init for " + wsname + " when starting " + module, - // null); - // return; - // } if (initedWidgetSet != null) { - // Something went wrong: multiple widgetsets inited - String msg = "Tried to init " + widgetset.getClass().getName() - + ", but " + initedWidgetSet.getClass().getName() - + " was already inited."; + // Multiple widgetsets inited; can happen with custom WS + entry + // point + String msg = "Ignoring " + widgetset.getClass().getName() + + ", because " + initedWidgetSet.getClass().getName() + + " was already inited (if this is wrong, your entry point" + + " is probably not first your .gwt.xml)."; throw new IllegalStateException(msg); } initedWidgetSet = widgetset;