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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
Developer
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?

 

Highlighted
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
Developer
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

 

 

BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.