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 235115 - Erroneous error message on Copy Class refactoring
Summary: Erroneous error message on Copy Class refactoring
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-27 17:44 UTC by mclaborn
Modified: 2016-07-07 07:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (512.70 KB, text/plain)
2013-08-27 17:44 UTC, mclaborn
Details
screen shot of problem (19.26 KB, image/png)
2013-08-27 17:45 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2013-08-27 17:44:08 UTC
Product Version = NetBeans IDE 7.3 (Build 201306052037)
Operating System = Linux version 3.2.0-52-generic running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

Screen shot coming shortly. 
Sporadically, when doing a copy class refactoring (a GUI class with a .form file), I see an extraneous error message at the bottom of the "Copy Class" dialog box that reads

Error: "" is not a valid Java identifier

even though there is a name in the "New Name" field (defaulted from the original class name) and that name is valid.

This does not happen every time.

Here are the exact steps that I use
1) In the Projects view, right click on the class to be copied and click Copy
2) In the project view, navigate to the new package (in my case it is in the same project)
3) Right click on the new package, select Paste -> Refactor Copy

The dialog shows as described above, and in the screen shot.

Making any change at all to the New Name field causes the error to disappear.

(Timing problem between the error check and population of the New Name field?)
Comment 1 mclaborn 2013-08-27 17:44:13 UTC
Created attachment 139323 [details]
IDE log
Comment 2 mclaborn 2013-08-27 17:45:01 UTC
Created attachment 139324 [details]
screen shot of problem
Comment 3 bht 2013-09-14 02:11:29 UTC
I have seen this, too.
Comment 4 Martin Balin 2016-07-07 07:17:10 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