]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use fully qualified name for bundles
authorArtur Signell <artur@vaadin.com>
Sat, 10 Sep 2016 20:20:36 +0000 (23:20 +0300)
committerVaadin Code Review <review@vaadin.com>
Mon, 12 Sep 2016 08:46:55 +0000 (08:46 +0000)
Fixes problem with two LAZY connectors not being able to have the same
simple class name.

Change-Id: I97970979884c99162d52718449dc18f10e955e32

client-compiler/src/main/java/com/vaadin/server/widgetsetutils/ConnectorBundleLoaderFactory.java
client/src/main/java/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java

index 7e8da70ac8d8fd9107af4ac2aa826d8e52b761af..87fcaef72d21052ba02baf563c63919ca87501c2 100644 (file)
@@ -1141,8 +1141,8 @@ public class ConnectorBundleLoaderFactory extends Generator {
 
         Collection<JClassType> lazy = connectorsByLoadStyle.get(LoadStyle.LAZY);
         for (JClassType type : lazy) {
-            ConnectorBundle bundle = new ConnectorBundle(type.getName(),
-                    eagerBundle);
+            ConnectorBundle bundle = new ConnectorBundle(
+                    type.getQualifiedSourceName(), eagerBundle);
             TreeLogger subLogger = logger.branch(Type.TRACE,
                     "Populating " + type.getName() + " bundle");
             bundle.processType(subLogger, type);
index 87c5b938e688964c2e5e12b96afafa89cc31b3c5..8911682e0a55d38ec59d2e50bfbb5b3590a53109 100644 (file)
@@ -33,7 +33,7 @@ import com.vaadin.ui.RichTextArea;
 /**
  * Connector for RichTextArea.
  */
-@Connect(value = RichTextArea.class, loadStyle = LoadStyle.EAGER)
+@Connect(value = RichTextArea.class, loadStyle = LoadStyle.LAZY)
 public class RichTextAreaConnector extends AbstractFieldConnector
         implements SimpleManagedLayout, ValueChangeHandler.Owner {