You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Ivan Latysh <iv...@yourmail.com> on 2004/05/07 22:49:15 UTC
A bug
Hello!
I submitted it in "The Jira Bug Tracking System"
But there are not much activity and I decided to duplicate it here:
[begin]
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AVALON-3
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AVALON-3
Summary: ConfigurationUtil.toConfiguration adds null string in front of
the each Text node
Type: Bug
Status: Unassigned
Priority: Major
Project: Avalon Framework
Components:
Implementation
Assignee:
Reporter: Ivan Latysh
Created: Fri, 7 May 2004 1:36 PM
Updated: Fri, 7 May 2004 1:36 PM
Environment: Any environment
Description:
This what cause the problem
ConfigurationUtil class, line 108
String content = null;
where should be
String content = "";
because after we are doing
content += data.getData();
that cause to add null string in front of the data readed from the node.
A simple test
String str = null;
str+="some text";
will give "nullsome text"
[end]
With best regards, Ivan Latysh. E-mail: ivan@yourmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: A bug
Posted by Stephen McConnell <mc...@apache.org>.
Ivan:
Have already looked at ConfigurationUtil relative to the JIRA issue.
It's a valid issue and something we may want to resolve before the the
framework 4.2.0 release.
Stephen.
Ivan Latysh wrote:
> Hello!
>
> I submitted it in "The Jira Bug Tracking System"
> But there are not much activity and I decided to duplicate it here:
>
> [begin]
> Message:
>
> A new issue has been created in JIRA.
>
> ---------------------------------------------------------------------
> View the issue:
> http://issues.apache.org/jira/browse/AVALON-3
>
> Here is an overview of the issue:
> ---------------------------------------------------------------------
> Key: AVALON-3
> Summary: ConfigurationUtil.toConfiguration adds null string in front of
> the each Text node
> Type: Bug
>
> Status: Unassigned
> Priority: Major
>
> Project: Avalon Framework
> Components:
> Implementation
>
> Assignee:
> Reporter: Ivan Latysh
>
> Created: Fri, 7 May 2004 1:36 PM
> Updated: Fri, 7 May 2004 1:36 PM
> Environment: Any environment
>
> Description:
> This what cause the problem
> ConfigurationUtil class, line 108
> String content = null;
> where should be
> String content = "";
>
> because after we are doing
> content += data.getData();
> that cause to add null string in front of the data readed from the node.
>
> A simple test
> String str = null;
> str+="some text";
>
> will give "nullsome text"
>
> [end]
>
> With best regards, Ivan Latysh. E-mail: ivan@yourmail.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org
>
>
--
|---------------------------------------|
| Magic by Merlin |
| Production by Avalon |
| |
| http://avalon.apache.org |
|---------------------------------------|
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org