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.
Summary: | Redo Move Class Package Declaration Not Updated | ||
---|---|---|---|
Product: | guibuilder | Reporter: | MackSix |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | jbecicka, MackSix |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Project to use for reproduction. |
I'm sorry I cannot reproduce. (In reply to comment #1) > I'm sorry I cannot reproduce. I just tried it on dev 20120509 and it failed. Could you try again and do Undo/Redo 2 or 3 times and see if it fails? Thanks It looks to be windows specific. I was able to reproduce it on windows with the help of Jirka. Let's look at it on Monday in the office. I'm not sure what's going on exactly, but Redo is done correctly by refactoring undo facility. The problem is, that FormRefactoringUpdate somehow overwrites package declaration back to old value. It is done by FormRefactoringUpdate.java: 542: fes.saveDocument(); please evaluate These may be related: http://netbeans.org/bugzilla/show_bug.cgi?id=205332 http://netbeans.org/bugzilla/show_bug.cgi?id=212567 I am able to reproduce this issue on Windows but only with JDK 7 (the same steps work fine on JDK 6 for me). I am also able to reproduce this issue when the file remains open in the editor (it works fine when the file is closed). (In reply to comment #7) > I am able to reproduce this issue on Windows but only with JDK 7 (the same > steps work fine on JDK 6 for me). I am also able to reproduce this issue when > the file remains open in the editor (it works fine when the file is closed). I can reproduce it on JDK 6u32 and 7u4, Windows 7. For me it makes no difference if the file is open or closed. Product Version: NetBeans IDE Dev (Build 201205240002) Java: 1.6.0_32; Java HotSpot(TM) Client VM 20.7-b02 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) |
Created attachment 119119 [details] Project to use for reproduction. 1) Open attached project. 2) Drag & Drop JFrameview.java into "newpackage" with refacoring. 3) Click Undo button. 4) Click Redo button. The package declaration is "package com.areaofthoughts.armageddon;" which is wrong. Should be: "package com.areaofthoughts.newpackage;" Product Version: NetBeans IDE Dev (Build 201205050400) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)