[esb-issues] [JBoss JIRA] Created: (JBESB-1223) native_client QS uses message.Body getByteArray (deprecated)

Tom Cunningham (JIRA) jira-events at lists.jboss.org
Sun Oct 21 10:46:03 EDT 2007


native_client QS uses message.Body getByteArray (deprecated)
------------------------------------------------------------

                 Key: JBESB-1223
                 URL: http://jira.jboss.com/jira/browse/JBESB-1223
             Project: JBoss ESB
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Examples
    Affects Versions: 4.2.1 IR2
            Reporter: Tom Cunningham
         Assigned To: Mark Little
             Fix For: 4.2.1


native_client QS has compile problems : 


compile:
    [mkdir] Created dir: /Users/tcunning/src/esb/trunk/product/samples/quickstarts/native_client/build/classes
    [javac] Compiling 1 source file to /Users/tcunning/src/esb/trunk/product/samples/quickstarts/native_client/build/classes
    [javac] /Users/tcunning/src/esb/trunk/product/samples/quickstarts/native_client/src/org/jboss/soa/esb/samples/quickstart/nativeclient/MyAction.java:42: warning: [deprecation] getByteArray() in org.jboss.soa.esb.message.Body has been deprecated
    [javac]         System.out.println("Body: " + new String(message.getBody().getByteArray()));
    [javac]                                                                 ^
    [javac] /Users/tcunning/src/esb/trunk/product/samples/quickstarts/native_client/src/org/jboss/soa/esb/samples/quickstart/nativeclient/MyAction.java:49: warning: [deprecation] getByteArray() in org.jboss.soa.esb.message.Body has been deprecated
    [javac]         String contents = new String(msgBody.getByteArray());
    [javac]                                             ^
    [javac] /Users/tcunning/src/esb/trunk/product/samples/quickstarts/native_client/src/org/jboss/soa/esb/samples/quickstart/nativeclient/MyAction.java:52: warning: [deprecation] setByteArray(byte[]) in org.jboss.soa.esb.message.Body has been deprecated
    [javac]         msgBody.setByteArray(("Hello From ESB MyAction: " + contents).getBytes());
    [javac]                ^
    [javac] /Users/tcunning/src/esb/trunk/product/samples/quickstarts/native_client/src/org/jboss/soa/esb/samples/quickstart/nativeclient/MyAction.java:62: warning: [deprecation] getByteArray() in org.jboss.soa.esb.message.Body has been deprecated
    [javac]         System.out.println(message.getBody().getByteArray());
    [javac]                                           ^
    [javac] 4 warnings


-- 
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