Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 135602 - List (report) of deprecated calls
List (report) of deprecated calls
Status: REOPENED
Product: java
Classification: Unclassified
Component: Refactoring
7.0.1
PC Windows XP
: P3 with 1 vote (vote)
: 7.1
Assigned To: Jan Becicka
issues@java
:
: 161188 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-22 14:11 UTC by rafo
Modified: 2012-01-13 17:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rafo 2008-05-22 14:11:49 UTC
It would be very useful thing if NB would contain a feature like:

"Report all deprecated calls"

Now, I am working with a legacy project. This project countains a lot of files.

And the task is to migrate the project to the new platform, and because of that I use new libraries.

And there are a lot of calls which are deprecated. Yes, they are marked as striketrogh. But I have to find/rewrite
deprecated code manually. It's a bit not trivial, because there are about hundred source java files.
Comment 1 locked 2010-11-12 15:24:06 UTC
*** Bug 161188 has been marked as a duplicate of this bug. ***
Comment 2 locked 2010-11-12 15:28:20 UTC
In NB 6.9 there is the possibility to enable "Report Uses of Deprecated APIs"
in the project properties, which is fine.

But it would be very nicem if there would also be a possibility to also report
all uses of deprecated calls in the currently compiled project and not only
calls to external JARs.
Comment 3 Jan Becicka 2011-01-13 13:08:09 UTC
Report Uses of Deprecated APIs reports all deprecated calls. Not only calls external JARs.
Comment 4 rafo 2011-01-13 15:09:06 UTC
Hello, folks.

I do not understand why this bug is marked fixed ?

"Report deprecated calls" in project properties just marks via strikethrough font all deprecated calls inside of source code.

The initial point was about solving a situation when I (and someone else) have about 250 files of source code with deprecated calls.

And I supposed to have this functionality like a "Find" menu functionality.

I call it and in the additional window I get the list of found deprecated calls in the whole project.

Please explain.

Thank you.
Comment 5 locked 2012-01-13 14:51:31 UTC
Currently you have to 
- enable "Report use of Deprecated API" in the project configuration, 
- recompile the project and 
- scroll through the output window and seek for calls to deprecated classes.

Changing the project configuration to get a report is counter intuitive if the task you want to do is refactoring & cleaning up.

I propose to add an entry in the "Inspect and Transform" window.
Possible categories could be "API", "General" or "Code Maturity".

------------
Changing "Version" of the Bug to 7.0.1 (currently running 7.1 RC2)
Comment 6 rafo 2012-01-13 17:45:54 UTC
That's ok

(In reply to comment #5)
> Currently you have to 
> - enable "Report use of Deprecated API" in the project configuration, 
> - recompile the project and 
> - scroll through the output window and seek for calls to deprecated classes.
> 
> Changing the project configuration to get a report is counter intuitive if the
> task you want to do is refactoring & cleaning up.
> 
> I propose to add an entry in the "Inspect and Transform" window.
> Possible categories could be "API", "General" or "Code Maturity".
> 
> ------------
> Changing "Version" of the Bug to 7.0.1 (currently running 7.1 RC2)


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo