This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 135602

Summary: List (report) of deprecated calls
Product: java Reporter: rafo <rafo>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: REOPENED ---    
Severity: blocker    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

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)