You are using an older version of Castor. We automatically create a name
for "unnamed nested groups" in the latest version of Castor.
The code you are referring to no longer exists in the latest version.
Thanks,
--Keith
Youri Canetti wrote:
>
> using the -verbose flag on the SourceGenerator is not behaving as it should.
> Somme class generations are skipped, whereas they are correctly generated
> without the -verbose flag.
>
> Apparently this comes from the "return" in the following method (found in
> SourceGenerator.java):
>
> private void createClasses(Group group, SGStateInfo sInfo) {
>
> if (sInfo.verbose()) {
> System.out.print("Creating classes for group: ");
> System.out.println(group.getName());
> if (group.getName() == null) {
> System.out.println("cannot create classes for unnamed nested
> groups");
> return;
> }
> }
>
> JClass[] classes = sourceFactory.createSourceCode(group, sInfo);
> processContentModel(group, sInfo);
> for (int i = 0; i < classes.length; i++)
> processJClass(classes[i], sInfo);
>
> } //-- createClasses
>
> youri
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev