[esb-issues] [JBoss JIRA] Commented: (JBESB-1357) Deprecated hint in javadoc for org.jboss.soa.esb.message.Body.getByteArray doesn't work

jarkko Lietolahti (JIRA) jira-events at lists.jboss.org
Thu Nov 22 18:16:18 EST 2007


    [ http://jira.jboss.com/jira/browse/JBESB-1357?page=comments#action_12388842 ] 
            
jarkko Lietolahti commented on JBESB-1357:
------------------------------------------




System.out.println("Body: " + new String(message.getBody().get(BytesBody.BYTES_LOCATION)));

needs a cast

System.out.println("Body: " + new String((byte[])message.getBody().get(BytesBody.BYTES_LOCATION)))

> Deprecated hint in javadoc for org.jboss.soa.esb.message.Body.getByteArray doesn't work
> ---------------------------------------------------------------------------------------
>
>                 Key: JBESB-1357
>                 URL: http://jira.jboss.com/jira/browse/JBESB-1357
>             Project: JBoss ESB
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Documentation
>    Affects Versions: 4.2.1
>            Reporter: jarkko Lietolahti
>         Assigned To: Mark Little
>            Priority: Minor
>             Fix For: 4.2.1 CP1
>
>
> Javadoc for Body.getByteArray says:"    Deprecated. As of 4.2 this has been replaced by get(BytesBody.BYTES_LOCATION) "
> But this doesn't work. BytesBody.BYTES_LOCATION is also deprecated without a proper hint where to go next!
> Following the javadoc and calling System.out.println("Body: " + message.getBody().get(BytesBody.BYTES_LOCATION)); in HelloWorld  ( from Eclipse ESB create project )
> shows "[STDOUT] Body: null

-- 
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 esb-issues mailing list