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 268823 - Refactor of class name changes namespace if has same base name
Summary: Refactor of class name changes namespace if has same base name
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 10:34 UTC by pmaselkowski
Modified: 2016-11-04 10:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example minimal project with above behavior (2.37 KB, application/octet-stream)
2016-11-04 10:35 UTC, pmaselkowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pmaselkowski 2016-11-04 10:34:21 UTC
NetBeans IDE Dev (Build 201610190002)

Assume I have classes:

Maslosoft\Acl\Rules
Maslosoft\Acl\Rules\MyRuleOne

1. Open "Rules" class definition file (Rules.php)
2. Click on class name and choose "Refactor -> Rename"
3. Enter new name, click preview

Current:
- Refactor tries to rename all classes with namespace anding with "Rules"

Expected:
- That refactor will affect only current class name
Comment 1 pmaselkowski 2016-11-04 10:35:06 UTC
Created attachment 162770 [details]
Example minimal project with above behavior