You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Mark Gordon <fr...@markgordon.org> on 2007/06/14 16:35:21 UTC

Classpath issue.



I am the guy that was having the XML parsing speed issue.  Turned out to
be a log4j issue (I think).  I commented out some of the logging and it
is back to acceptable speeds.  I am not done testing.

Well in my travels I found this in the
org.ofbiz.base.start.Classpath.java object.

This method is used to set the java.class.path System property in the
Start object.  I think the get in the second loop is supposed to be
get(i) not get(0).   It is returning some interesting results.

    public String toString() {
        StringBuffer cp = new StringBuffer(1024);
        int cnt = _elements.size();
        if (cnt >= 1) {
            cp.append(((File) (_elements.get(0))).getPath());
            appendPath(cp, ((File) (_elements.get(0))).getPath());
        }
        for (int i = 1; i < cnt; i++) {
            cp.append(File.pathSeparatorChar);
            appendPath(cp, ((File) (_elements.get(0))).getPath());
        }
        return cp.toString();
    }

Not sure ... but there you go.

Have a good day.

-mark