users@jaxb.java.net

Re: Problems with substitutionGroup

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 26 Jan 2005 08:37:06 -0800

Vivian Steller wrote:
> Now, I perfom the following code, resulting in a strange behaviour:
>
> ################# CODE ##################
> SystemProfileDiagram dia = (SystemProfileDiagram)
> diagramFactory.createSystemProfileDiagram();
>
> Diagrams dias = (Diagrams) project.getDiagrams();
> List diagramList = dias.getDiagram();
> diagramList.add(dia);
>
> System.out.println(diagramList.size());
> System.out.println(project.getDiagrams().getDiagram().size());
> ################# CODE ##################
>
> The output made by printlns is:
> ################# OUTPUT ##################
> 1 // that's still right
> 0 // something went wrong... :(
> ################# OUTPUT ##################

Is your "diagramList" and "project.getDiagrams().getDiagram()" the same
object?

If you could file a bug with the schema plus the test case, we'd like to
take a look.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net