Link to home
Start Free TrialLog in
Avatar of HStrix
HStrix

asked on

JBuilder: suppress deprecated warnings

Hello experts, I'm using JBuilder Enterprise 11
and have some existing code.
Now the JBuilder shows a lot of deprecated warnings.
Is there a way to suppress them
as it is in other environments like "ignore all warnings" or similar?
I couldn't find such hints in the help.

       Any help is appreciated.  
 
             HStrix  
 
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Depending on your compiler, try

 -Xlint:-deprecation

as compiler arguments
Add the -nowarn option to the compiler, or remove the checkbox next to "Show warnings" under the compiler tab in "Project properties".

>> Add the -nowarn option to the compiler

That will remove any other sort of warning too of course.

Of course a better way to avoid the warnings is to not use methods that could break your code at some point in the first place ;-)
Running

javac -X

on the compiler JBuilder is using will show you the warnings options
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HStrix
HStrix

ASKER

Thanks zzynx,
that is the solution.

  HStrix

Thanks to all others as well.
>>that is the solution.

The solution is not to use deprecated methods - the warnings are there for a reason ;-)
You're welcome.
Thanks for accepting.
When I moved my project from JBuilder 9 Ent to X, these errors were also occurred.
I overcome this problem by this way.
Remove Classes and bak folders from project folder. then open project in JBuilder, and recompile it. it makes new classes and backup files. and the problem was eliminated.