Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Administrator
MSohm
Posts: 14,277
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell
Accepted Solution

Recompile with -Xlint:deprecation

Quote from the previous forum:


timnelson

Posts: 7
Registered: Jul, 2005

Recompile with -Xlint:deprecation
Posted: Jul 15, 2008 2:06 PM
 
In the JDE how do I add this as a command line argument to rapc.exe so I can see what deprecated API's I am using?


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Administrator
MSohm
Posts: 14,277
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Recompile with -Xlint:deprecation

The BlackBerry rapc compiler doesn't currently support the -Xlint: options.  However, you can view more information by adding the -deprecation switch to the rapc command line.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
bigc
Posts: 126
Registered: ‎08-31-2008
My Device: 9000, 9780, 9900

Re: Recompile with -Xlint:deprecation

Is there any way to add that flag to the call from within the JDE?

 

Please use plain text.
Administrator
MSohm
Posts: 14,277
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Recompile with -Xlint:deprecation

No, you'd have to execute the build from a command line to modify the rapc parameters.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
sandeepkumar03
Posts: 117
Registered: ‎02-12-2009
My Device: Not Specified

Re: Recompile with -Xlint:deprecation

Hi,

 

Can you please give more information about depricated APIs. What is the problem in using depricated APIs?

 

Also I am using Dialog Class. And i am not implementing any interfaces. I compiled my file with the -deprication option through command line. It gives info "[deprecation] inHolster() in net.rim.device.api.system.HolsterListener has
been deprecated"

 

Touchdemo suppiled with JDE also shows same info.

 

Can you please help understanding this?

 

Thanks,

Sandeep

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,277
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Recompile with -Xlint:deprecation

It is recommended to avoid deprecated APIs.  An API is marked as deprecated to inform developers that it could be removed in the future.  The JavaDocs for deprecated APIs typically direct to the recommended replacement API.

 

Note that to date no API marked as deprecated has been removed from the BlackBerry API set.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.