Daniel Dyer
Tue, 01 Mar 2005 05:57:56 -0800
OK, it appears that that is not without side effects (causes problems with nested locations deeper than two-levels in another part of the file). I have gone back to checking the tag names for now, until I can work out what the condition for the if statement should be.
Dan.
-----Original Message-----
From: Daniel Dyer
Sent: 01 March 2005 11:44
Cc: castor-dev@exolab.org
Subject: [castor-dev] RE: "unable to find FieldDescriptor" when using
auto-naming with location attribute
Eventually I came up with this ugly check that seems to work in general:
if ((descriptor == null)
&& ((count == 0) || (pathBuf != null &&
pathBuf.toString().equals(path)))
&& (!targetState.wrapper)) {
Being totally unfamiliar with Castor I've no idea why this works or how
it could be done better. Perhaps someone who knows the code could
review this for me?
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev