Summary: | Class move refactoring changes the unlinked projects in the same workplace | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eugene Kuleshov <ekuleshov> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | major | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Eugene Kuleshov
2003-01-31 13:17:31 EST
Can you please provide exact steps to reproduce ? Are you sharing files across those two projects ? The projects are completely independent, no shared files. Project A is using class java.security.Security, which is imported from a rt.jar. Project B has whole source for java.security.Security and was used for plaing with the refactoring and remodelling. So, I've moved java.security.Security class to an another package of Project B and Eclipse is changed all the references in Project A. Even if class was from java.security package, it should not be an issue. David - pls try to reproduce Simple test case : 1) create project 'A' with source folder 'src'. 2) create a jar which contain a class 'bbb.Y'. 3) add this jar to the classpath of 'A'. 4) create the class X.java in 'A'. package aaa; import bbb.*; public class X { bbb.Y s1; Y s2; void foo(bbb.Y s3, Y s4) { bbb.Y s5; Y s6; } } 5) create the project 'B' with source folder 'src'. 6) create the class Y.java in 'B'. package bbb; public class Y { } 7) create the class X.java in 'B'. package aaa; import bbb.*; public class X { bbb.Y s1; Y s2; void foo(bbb.Y s3, Y s4) { bbb.Y s5; Y s6; } } 8) create the package 'ccc' in 'B'. 9) do Refactor>Move of 'Y' from 'bbb' to 'ccc'. References are updated in projects 'A' and 'B'. |