[jboss-jira] [JBoss JIRA] Commented: (JBAS-5715) -ds.xml not trimming whitespace in jboss5

Jeff Zhang (JIRA) jira-events at lists.jboss.org
Mon Jul 7 04:59:01 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAS-5715?page=comments#action_12420061 ] 
            
Jeff Zhang commented on JBAS-5715:
----------------------------------

try to add @XmlJavaTypeAdapter(CollapsedStringAdapter.class)

   /** The jndiName */   
   @XmlElement(name="jndi-name")
   @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
   private String jndiName;   

after adding annotation, they are all successful. 
1.    <jndi-name>DefaultDS1</jndi-name>

2.    <jndi-name>DefaultDS1
</jndi-name>

3.    <jndi-name>
DefaultDS1
</jndi-name>

I will go through those String elements

> -ds.xml not trimming whitespace in jboss5
> -----------------------------------------
>
>                 Key: JBAS-5715
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5715
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JCA service
>    Affects Versions: JBossAS-5.0.0.CR1
>            Reporter: Adrian Brock
>         Assigned To: Jeff Zhang
>             Fix For: JBossAS-5.0.0.CR2
>
>
> See JBAS-5173
> Here's an example where it is being used:
>    
> org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentMetaData
>    /** The connectionDefinition */
>    @XmlElement(name="connection-definition")
>    @XmlJavaTypeAdapter(CollapsedStringAdapter.class) // HERE!
>    protected String connectionDefinition;
> But this should be on every String.

-- 
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 jboss-jira mailing list