Rico Jansen <[EMAIL PROTECTED]> wrote:
> michiel wrote:
> >Update of 
> >/usr/local/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/macro
> >In directory UE450:/tmp/cvs-serv7929
> >
> >Modified Files:
> >        ListChangedTag.java ListEvenTag.java ListFirstTag.java
> >        ListLastTag.java ListOddTag.java
> >Log Message:
> >these can of course be final
> >
> 
> Are you sure ?, nobody will want to extend this ?

Yes, I'm sure.

I'll cite the complete code of one of them (without the license, and headers):

public class ListLastTag extends ListConditionTag {
    protected final int getValue() throws JspTagException {
        return CONDITION_LAST;
    }
}


If you want to extend this, you better extend ListConditionTag itself.

The complete essence of last-tag is that it return CONDITION_LAST there, so
it is out of the question overriding that.


Michiel




-- 
Michiel Meeuwissen       |
Mediapark C101 Hilversum | 
+31 (0)35 6772979        |  I hate Internet Explorer
nl_NL eo_XX en_US        |
mihxil'                  |
 [] ()                   |

Reply via email to