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 237333 - Refactory problem copying java with xml files to another package
Summary: Refactory problem copying java with xml files to another package
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC All
: P4 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-18 20:55 UTC by ksfreitas
Modified: 2016-07-07 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ksfreitas 2013-10-18 20:55:08 UTC
Machine info:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 8 version 6.2 running on amd64; Cp1252; pt_BR (nb)
User directory: C:\Users\cassio\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\cassio\AppData\Local\NetBeans\Cache\7.4


When two (or more) files with extensions .java and .xml are copied together (multiple selection) to another package (in project navigator), the Netbeans becomes crazy:

1. The package descriptor name inside .java file is not updated
2. When you change and save the new file, the original file is changed, not the new.

I tested this in Netbeans 7.3, 7.3.1 and 7.4, running in Windows8 and Mac.
Comment 1 Jiri Prox 2013-10-22 12:28:53 UTC
Reproducible

When selecting more file type, the java refactoring is not performed
Comment 2 Martin Balin 2016-07-07 07:18:03 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss