Kohsuke,
Thanks for the pointer. Yes, I did have a common element in the 'base' and
'derived' type definitions. Once I removed it, I got the expected get &
set methods in the generated interface.
It should certainly be helpful if the reason for 'getRest' occurrence is
either indicated in the generated javadoc or even as a warning in the XJC
output.
Thanks again for your help.
- Gagan
Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
10/14/2003 08:39 PM
Please respond to
users_at_jaxb.dev.java.net
To
users_at_jaxb.dev.java.net
cc
Subject
Re: problem with code generated for derived types
I think I need to see the complete type definitions of two types.
One case where the "getRest" happens is when both your derived type
and the base type contains the attribute/element of the same name.
Because of the name collision caused by this, XJC falls back to the "rest"
position.
I might be able to tweak the compiler so that the javadoc of the rest
method will indicate why you are getting it. I guess it might be helpful
to plan a customization to get rid of it.
regards,
--
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