The following comment has been added to this issue:
Author: Steve Gibson
Created: Tue, 10 Aug 2004 6:07 AM
Body:
I think that if no default is supplied, the current behavior is probably
expected (especially for ant users). " " and "" though, are not expected
behavior. I wonder if anybody has an application where they would want an empty
string to map to undefined symbol rather than empty string?
Reminds me of all the nasty servlet programming I used to do before tapestry.
Check if the string is null, or the length is zero. Something doesn't work
properly - oh yeah, that guy forgot to check for empty string.
If there is a need for mapping empty string to null, maybe that could be
another parameter to SmartTranslator?
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/HIVEMIND-29?page=comments#action_37140
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/HIVEMIND-29
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HIVEMIND-29
Summary: SmartTranslator should differentiate between blank strings and
null input
Type: Bug
Status: In Progress
Priority: Major
Project: HiveMind
Components:
framework
Versions:
1.0
Assignee: Howard M. Lewis Ship
Reporter: Michael Frericks
Created: Wed, 28 Jul 2004 12:25 AM
Updated: Tue, 10 Aug 2004 6:07 AM
Environment: hivemind-1.0-beta-1
Description:
Contributions of whitespaces are ignored:
<default symbol="test.Symbol" value=" " />
used in a Service
<invoke-factory service-id="hivemind.BuilderFactory">
<construct
class="TestServiceImpl">
<set
property="testParameter"
value="${test.Symbol}" />
</construct>
sets the testParameter to the String '${test.Symbol}'
You can see this too in the hivemind-lib
where empty values for symbol ${java.naming.factory.initial}...
are ignored.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]