In SDM mode, I can't seem to use AutoBean on beans that have a Map as one 
of their properties.

Example bean + factory:


public interface Test extends Serializable
{
    public Map<String, String> getTest();
    public void setTest(Map<String, String> test);
}

public interface Factory extends AutoBeanFactory
{
    AutoBean<Test> test();
}


Usage:

        Factory factory = GWT.create(Factory.class);
        Test test = factory.test().as();
        GWT.log("Created bean");


        Map<String, String> testMap = new HashMap<>();
        testMap.put("foo", "bar");
        test.setTest( testMap );
        GWT.log("Set map");


        String json = AutoBeanCodex.encode( AutoBeanUtils.getAutoBean(test) 
).getPayload();
        GWT.log("Got json: " + json);


Output:

  Created bean
  Uncaught ReferenceError: Ljava_util_Map_2_classLit_0_g$ is not defined

This code works if I compile and run it from production, but in SDM I get 
the above error.

I've created a repo for a sample project where this bug can be 
replicated: https://github.com/aliakhtar/AutobeanTest

Is there a workaround that I can use for now, or do I need to do a full 
compile each time / use overlay types?




-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to