on 10-09-2007 1:45 PM
Dear All,
I have just written a small program using NWDS (Netweaver developer Studio). The code includes the following line:-
HttpRequestSender requestSender = new HttpRequestSender(url,"user1","abc");
The program has the following imports:-
import com.sap.lcr.api.cimclient.CIMClient;
import com.sap.lcr.api.cimclient.CIMOMClient;
import com.sap.lcr.api.cimclient.ClientFactory;
import com.sap.lcr.api.cimclient.HttpRequestSender;
import com.sap.lcr.api.sapmodel.SAP_AppServJCODestination;
import com.sap.lcr.api.sapmodel.SAP_JCODestination;
import com.sap.lcr.api.sapmodel.SAP_JCODestinationAccessor;
import com.sap.lcr.api.sapmodel.SAP_MsgServJCODestination;
import com.sap.mw.jco.JCO;
import com.tssap.dtr.client.lib.protocol.URL;
I get the following error when I build the project:-
The constructor HttpRequestSender(URL, String, String) is deprecated
Can anyone kindly tell me why I am getting this message and how to resolve it?
Kind Regards
Chris Jackson
Hi,
This means that the constructor that you are calling has been replaced in the Java VM with a different way of calling it or a different set of constructor parameters.
If you continue to use this constructor then it may be completely removed in future Java VM implementations.
Take a look at the available ways of calling this constructor to find a way that is not deprecated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.