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 231527 - Exclude comment blocks from "Fix uses..." feature
Summary: Exclude comment blocks from "Fix uses..." feature
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-19 14:19 UTC by vmattila
Modified: 2013-06-19 14:19 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vmattila 2013-06-19 14:19:25 UTC
I do extensively use NetBeans' "Fix uses..." feature to clean the code. Currently NetBeans searches and replaces also class names inside the comments. This causes some problems for example in annotated docblocks where the docblock may contain some special class-like code. One example is Doctrine MongoDB ODM annotations:

/**
 * @MongoDB\ReferenceOne(targetDocument="SomeOther\Namespace\Document")
 */

Here, NetBeans replaces also text inside targetDocument="" even it should not.

I would suggest that Fix uses... feature would not touch code comments at all.