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.

Bug 109611

Summary: Refactoring in free-form projects
Product: java Reporter: psadowski <psadowski>
Component: FreeformAssignee: Milan Kubec <mkubec>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Example projects to replicate issue

Description psadowski 2007-07-13 11:15:05 UTC
Not sure if its free-form or refactoring specific issue... In free-form project Find Usages (and all refactoring 
functions) dont find all usages. Example: I have two projects Project1 and Project2, Project2's classes are in 
Project1's classpath. Class A is in Project1, class B is in Project2. Class A extends class B. If I open class A in 
editor, click on class B name and start Find Usages, NetBeans will find all usages of class A in both projects. If I 
open class B in editor and start Find Usages with that class in editor (I guess NetBeans has some of context which 
project it works in, depending on file being edited) NetBeans will find usages only in Project2. 
This issue makes me unable to refactor base classes located in different projects than classes that use those base 
classes (only base classes get refactored, not classes using them). Question is this a bug (projects are fine, it 
should work) or a feature (I have misconfigured projects). If its a feature, how do I configure free form project (some 
kind of project dependency?) so refactoring between projects would work? 
Issue is found in both NetBeans 5.5.1 and 6M10.
Comment 1 psadowski 2007-07-13 11:55:45 UTC
Created attachment 45057 [details]
Example projects to replicate issue
Comment 2 Milan Kubec 2007-07-15 14:46:36 UTC
Already reported.

*** This issue has been marked as a duplicate of 57656 ***