[jbossws-issues] [JBoss JIRA] Commented: (JBWS-1617) JAXRPC doc/literal trims empty string

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Thu Jun 14 11:54:11 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBWS-1617?page=comments#action_12365395 ] 
            
Thomas Diesler commented on JBWS-1617:
--------------------------------------

Whitespace is trimmed in jbossxb-1.0.0.GA

org.jboss.xb.binding.Content:214

   public void characters(char[] ch, int start, int length)
   {
      Characters characters = new Characters(ch, start, length);
      // ignore whitespace-only characters
      if(characters.toString().trim().length() > 0)
      {
         content.add(characters);

         if(trace)
         {
            log.trace("characters> " + characters);
         }
      }
   }


> JAXRPC doc/literal trims empty string
> -------------------------------------
>
>                 Key: JBWS-1617
>                 URL: http://jira.jboss.com/jira/browse/JBWS-1617
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-jaxrpc
>            Reporter: Thomas Diesler
>         Assigned To: Thomas Diesler
>             Fix For: jbossws-2.0.0
>
>
> ant -Dtest=jaxrpc/marshall test
> Testcase: testString took 0.16 sec
>         FAILED
> expected:<   > but was:<>
> junit.framework.ComparisonFailure: expected:<   > but was:<>
>         at org.jboss.test.ws.jaxrpc.marshall.MarshallTest.testString(MarshallTest.java:613)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list