[BUG][vw74][tools] Adding import moves class definition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[BUG][vw74][tools] Adding import moves class definition

Eric Winger
If you add an import while accepting a method, the class definition
will get moved to a new package.

To reproduce:

* Create ClassA in Package1 and a method (i created an instance method)
instanceA in ClassA, but in Package2.
* In instanceA, add a reference to a class that is not visible to
ClassA.
* Accept
* A dialog will appear that the class is not declared. Select Correct
Spelling...
* Make sure the class is not in the list, then press Search the System
* The namespace referenced class should appear, select it.
* Press Import container
* In response to the confirmation of where to add the import, select ..
to the class


The import will be added to the class, but ClassA will now be defined
in Package2.