I had the opposite problem, where an attempt to overwrite the class was
resulting in a console prompt which I couldn't see because I was running the
SourceGenerator from ANT :-)
Are you sure you aren't using the "-f" argument, as this gives the no-prompt
behaviour you describe? Note that even if you get past the source generator
point using "-f" you still get runtime reflection failures because only one of
the classes which share the name will be properly described by then matching
*Descriptor.java class.
Cheers,
Norval
|--------+----------------------->
| | "Weir, John" |
| | <john.weir@gs|
| | .com> |
| | |
| | 19/03/2002 |
| | 09:26 AM |
| | Please |
| | respond to |
| | castor-dev |
| | |
|--------+----------------------->
>--------------------------------------------------------|
| |
| To: [EMAIL PROTECTED] |
| cc: (bcc: Norval Hope/ISD/VWA) |
| Subject: [castor-dev] XML: Small problem in |
| SourceGenerator |
>--------------------------------------------------------|
I have been using Castor 0.9.3.9 for a month now and find it very good. I
have become quite 'blaze' about making large changes to my schema and just
regenerating the code.
I came unstuck this morning and had to get the debugger out.
>From what I can understand, Castor processes the schema and generates an
Array of JClasses which are processed by processJClass().
If this array has two classes of the same name ( due to a less than perfect
- although valid - schema ) then the second generated class overwrites the
first without warning. Does anyone think that a warning messages might be
useful if a duplicate ( and different ) definition is found ?.
This might be fixed in CVS, but I'm behind a firewall ....
Thanks
John
-----------------------------------------------------------
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