You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Michael Imhof (JIRA)" <ji...@apache.org> on 2007/02/22 09:12:05 UTC
[jira] Updated: (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 ]
Michael Imhof updated OFBIZ-744:
--------------------------------
Attachment: patch744.txt
> ClassPath: toString is not working correctly
> --------------------------------------------
>
> Key: OFBIZ-744
> URL: https://issues.apache.org/jira/browse/OFBIZ-744
> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk
> Environment: SUSE Linux 10.1 & MySQL 5.0.18
> Reporter: Michael Imhof
> 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.