Hi there,

i think there is a bug in the turbine-moduleloader

private Iterator getAllPossibleModules(Iterator i, Iterator j, String type)
{
    FastArrayList modules = new FastArrayList();
    FastArrayList defaultModules = new FastArrayList();
        
    while (i.hasNext())
    {
        String modulePackage = (String) i.next();

        ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        + here is a bug, if "i" has more than one element
        ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        while (j.hasNext())
        {
            String module = modulePackage + "." + type + "." + (String) j.next();
            modules.add(module);

        }
            
        // Add default for type
         defaultModules.add(modulePackage + "." + getDefaultModule(type));
    }

    modules.addAll(defaultModules);

    return modules.iterator();
}


-- 
Best regards
homburg Softwaretechnik
Sven Homburg
21220 Seevetal

http://www.hsofttec.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to