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.
NetBeans IDE Dev (Build 200604131800) 1.6.0-beta2; Java HotSpot(TM) Client VM 1.6.0-beta2-b77 Linux version 2.6.5-1.358 running on i386 en_US (nb); UTF-8 Imports are not set correctly when moving class to another package. Only <original pack>.* is added, but if in the new package exist a class with the same name as in original, the reference form the moved class is change -> which can make code uncompilable. Steps to reproduce: 1) create project structure: packA \- Main \- NewClass packB \- NewClass 2) add following to the class Main: private NewClass ccc; 3) move class Main to packB -> import packA.*; is added -> but field ccc in now packB.newClass, not packA.NewClass as before
*** Issue 101697 has been marked as a duplicate of this issue. ***
Obsolete milestone, please reevaluate
moving opened issues from TM <= 6.1 to TM=Dev
Created attachment 87281 [details] proposed patch
http://hg.netbeans.org/jet-main/rev/d033fca81ce7
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d033fca81ce7 User: Max Sauer <msauer@netbeans.org> Log: #75076: [Move] Import not set correctly when moving class