You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2007/10/21 09:57:50 UTC

[jira] Assigned: (OFBIZ-744) ClassPath: toString is not working correctly

     [ https://issues.apache.org/jira/browse/OFBIZ-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato reassigned OFBIZ-744:
---------------------------------------

    Assignee: Adam Heath

Adam,

am I wrong or do you have already recently fixed this issue?


> ClassPath: toString is not working correctly
> --------------------------------------------
>
>                 Key: OFBIZ-744
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-744
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SUSE Linux 10.1 & MySQL 5.0.18
>            Reporter: Michael Imhof
>            Assignee: Adam Heath
>            Priority: Minor
>         Attachments: patch744.txt
>
>
> 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();
>     }
> Solution:
> =======
> Second appendPath should use counter i:
>             appendPath(cp, ((File) (_elements.get(i))).getPath());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.