OK,
Then is this better ? :

                if ( the_tag != null )
                {
                        // param_num is legacy! We previously supported
space-separated tag values.
                        // It's now only used with the value of 0 for
single-value tags.

                        value = DocletUtil.getText( the_tag );
                        value = getParameterValue( value, param_name,
param_num );
==>        }

                        if( value == null )
                        {
                        etc ....

The case is having a tag in a superclass and not in the class
Then the_tag is null, but I have to go through the hierarchy to find it

I will commit an example of doing that in samples.

Regards.
Vincent.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf 
> Of Ara Abrahamian
> Sent: mardi 27 novembre 2001 18:44
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-devel] xdocletTagSupport line 491
> 
> 
> > getTagValue(): Line 490-491
> > //note that superclasses is false
> > tags = DocletUtil.getTagsByName( ( ClassDoc ) prg_elem_doc, 
> tag_name, 
> > false );
> > 
> > The false says to not go into super classes.  This does not 
> fit in the 
> > entity/session .j files where first we test if a method exists and
> then
> > get the method.  The first one go through the hierarchy, the second
> one
> > no.
> > 
> > Can I change the false to true or is there other things I forgot ?
> 
> No. It's bit messy but I couldn't manage that part better. 
> See line 537, that's where we traverse superclasses.
> 
> Ara.
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
> 
> 



_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to