Project: JDT
Bug 94801 [introduce factory] does not check for existing factory methods
Reported: 2005-05-11 13:44:38 | Status: resolved fixed

I20050510: Steps to reproduce: - Invoke Introduce Factory on the constructor class TaskUtilities { public static TaskUtilities createTaskUtilities() { return null; } public TaskUtilities() {} } -> Refactoring inserts second method createTaskUtilities without issueing an error

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceFactory/negative/FactoryClash_in.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/IntroduceFactoryTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceFactoryInputPage.java