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
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
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 ;-)
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
javac -X
on the compiler JBuilder is using will show you the warnings options
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks zzynx,
that is the solution.
HStrix
Thanks to all others as well.
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 ;-)
The solution is not to use deprecated methods - the warnings are there for a reason ;-)
You're welcome.
Thanks for accepting.
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.
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.
-Xlint:-deprecation
as compiler arguments