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.
I'm using Netbeans 7.2 beta. The ability to detect unused "use" statements is a great new feature, but it has this problem: Many times, I'll "use" a class as an doc-comment annotation; this is very common in frameworks like Symfony2 and Doctrine. For example: use JMS\SecurityExtraBundle\Annotation\Secure; class MyController { /** * @Secure(roles="ROLE_ADMIN") * This annotation requires that "Secure" be imported as above. */ public function myAction() { } } In this example, the @Secure annotation will not work unless the class is imported, but Netbeans marks the "use" statement as unused.
*** This bug has been marked as a duplicate of bug 212932 ***