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 224051

Summary: Cannot refactor JavaBean.java that is defined outside of an open project. being displayed for a File of an open project
Product: java Reporter: banifou <banifou>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description banifou 2012-12-19 17:26:35 UTC
After trying to rename with Refactoring a variable of a java Class of an open
Web project, the "Cannot refactor JavaBean.java that is defined outside of an open
project." message is displayed. 
I noticed, when I right click on the Project name I see "open required projects" and is selectable! But there is no required projects.
Another Issue I can't use "encapsulate fields" any more. It's not selectable any more.

Operating System: Linux - Ubuntu
Runtime: Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Comment 1 banifou 2012-12-20 16:38:10 UTC
I think I know what happend. I renamed the project after that refactoring doesn't work!!
I created a new web project with existing sources, now refactoring works fine.

Anyway, this shouldn't happen.
Comment 2 Ralph Ruijs 2015-03-24 11:26:54 UTC
Works for me in current dev builds. Please reopen with steps to reproduce if necessary.
Comment 3 banifou 2015-03-26 11:07:16 UTC
It's really late answer. Sorry I don't remember any more!!!