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.
Fix uses should prefer classes from the same namespace. Sample: --------------------------- file MyClass.php: namespace One; class MyClass { } --------------------------- file MyClass2.php: namespace Two; class MyClass { } --------------------------- file YourClass.php: namespace One; class YourClass extends MyClass { } --------------------------- Now, fix uses in YourClass.php - dialog suggests to use Two\MyClass but it is more likely that we don't want to insert any class use (since One\MyClass is from the same namespace as YourClass). Láďo, I guess it is too late for a patch, right? :/ Thanks. Product Version: NetBeans IDE Dev (Build 20130308-5461914c033f) Java: 1.6.0_43; Java HotSpot(TM) 64-Bit Server VM 20.14-b01 Runtime: Java(TM) SE Runtime Environment 1.6.0_43-b01 System: Linux version 3.5.0-25-generic running on amd64; UTF-8; cs_CZ (nb)
I'm afraid so, at least for patch1
Sorry, returning back the proper SW.
Fixed in web-main #f89f798de3e4
Integrated into 'main-golden', will be available in build *201303222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f89f798de3e4 User: Ondrej Brejla <obrejla@netbeans.org> Log: #227304 - Fix uses: Classes from same namespace should be preferred
verified Product Version: NetBeans IDE Dev (Build web-main-10256-on-20130406) Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b32 System: Linux version 3.2.0-39-generic-pae running on i386; UTF-8; en_US (nb)
Ondra, please proceed with integration into release73 (if it hasn't been integrated yet) and change SW to '73patch2-fixed'. Thanks in advance.
Transplanted to release73 branch of releases repo [1]. Ondro, please verify the changeset. Thanks. [1] http://hg.netbeans.org/releases/rev/0b73c74eaca0
Seems to be ok, thanks a lot.
Spec version increased as well. http://hg.netbeans.org/releases/rev/49a05361200c
Great, thanks!
Integrated into 'releases', will be available in build *201305072358* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/0b73c74eaca0 User: Ondrej Brejla <obrejla@netbeans.org> Log: #227304 - Fix uses: Classes from same namespace should be preferred
patch2 verified Product Version: NetBeans IDE 7.3.1 (Build 201302132200) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-41-generic-pae running on i386; UTF-8; en_US (nb)