The following comment has been added to this issue:

     Author: Michael Frericks
    Created: Wed, 28 Jul 2004 7:29 AM
       Body:
I found the location where empty- or whitespace-strings 
are translated to null.


SmartTranslator:

    public Object translate(
        Module contributingModule,
        Class propertyType,
        String inputValue,
        Location location)
    {
        if (HiveMind.isBlank(inputValue))
        {
            if (_default == null)
                return null;

            inputValue = _default;
        }

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/HIVEMIND-29?page=comments#action_36910

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-29

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-29
    Summary: Contribution of whitespaces are ignored
       Type: Bug

     Status: Open
   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: Wed, 28 Jul 2004 7:29 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]

Reply via email to