On Fri, 2004-12-17 at 00:55, David J. Hamilton wrote: > I've experienced some issues using XDtClass:forAllClasses or > XDtType:ifIsOfType in a custom struts template, in particular with the > extent being set to "hierarchy". > > The behavior I'm getting is that the object hierarchy is only partially > traversed, which allows me to use XDtType:ifIsOfType only in the context > of "super" rather than "hierarchy". For instance, if I have an object graph > A > B,C,D extends A > E extends B > > and my template wants to do something for all objects of type "A", only > objects B,C,D will be affected, not E. > > Tracing xdoclet shows me the issue. The superclass is loaded as an > UnknownClass, which implicitly extends Object, which of course ends the > hierarchy search. I may be failing to RTFM sufficiently, but what might > I do in order for the superclass to be loaded correctly? (i.e, to be > loaded such that it knows its own superclass).
If the superclass is an UnknownClass, that suggests the parser (xjavadoc) can't find it in the classpath it's using. You mention Struts; have you included the Struts jar in the classpath you specify when you declare the xdoclet task? That should be enough to let xjavadoc figure out their inheritence hierarchy. Alternatively, you could include their sources in the fileset you pass to xdoclet, but that's more relevant when e.g. you have your own base class which is extended by the classes you want XDoclet to process. Andrew. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
