Prerequisites:
- Intellij IDEA 9852 or 10322 installed.
Steps to reproduce:
1. Open the attached project and navigate to 2 classes:
- ModuleA.mxml (the 'ModuleA' depends on the 'SampleClasses' module, which contains the first com.Util class);
- ModuleB.mxml (contains another com.Util class with the different variable value);
2. Place caret on the "Util.VARIABLE_1;" string and press Ctrl+B for both "ModuleA" and "ModuleB" modules;
Actual result:
The 'com.Util' class is shown in both cases even if only the "ModuleA" depends on the "SampleClasses" module and the ModuleB has its own
com.Util class with the different variables. This will cause IDEA to incorrectly build the dependencies and fail the inspections for the correct projects
and it will confuse end-users.
Expected result:
Dependencies should be built correctly in such cases: "com.Util" in the "ModuleA" should link to the "com.Util" in the "SampleClasses" module, and Util in the ModuleB
should link to the com.Util in the "ModuleB" module.
Environment: Windows XP SP3, 4 Gb RAM, JVM 1.6.03_b03
Issue was resolved