commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Scott Stevens <...@latchkey.com>
Subject [betwixt] two bugs
Date Wed, 12 Jun 2002 00:58:30 GMT
Bug #1:

If I remove the getModules() method from the code below, then the
addModule() method is never called and no error is reported.

import java.util.List;
import java.util.ArrayList;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.tigris.scarab.util.xmlissues.Module;

public class ScarabIssues implements java.io.Serializable
{
    private final static Log log = LogFactory.getLog(ScarabIssues.class);

    public ScarabIssues()
    {
    }

    public List getModules()
    {
        return new ArrayList();
    }

    public void addModule(Module module)
    {
        log.debug("Module: " + module.getName());
    }
}

Bug #2:

If the Module class referenced above does not implement Serializable, then
it is also not called and no error is reported.


-jon


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message