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.
Build: NetBeans IDE Dev (Build 201111120600) VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08 OS: Windows Vista User Comments: MackSix: 1) Do Refactor>>Extract Superclass>>Refactor on a class. 2) View Superclass file and press the undo button. 3) View class file the refactoring was exected on and do Refactor>>Undo[Extract Superclass] This exception is thrown. Stacktrace: java.lang.Throwable: Locked by: at org.openide.filesystems.FileLock.<init>(FileLock.java:83) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.<init>(LockForFile.java:91) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:102) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:353) at org.openide.loaders.MultiDataObject$Entry.takeLock(MultiDataObject.java:1352) at org.netbeans.modules.openide.loaders.SimpleES$Environment.takeLock(SimpleES.java:188)
Created attachment 113177 [details] stacktrace
cannot reproduce.
Created attachment 113192 [details] Project that exhibits the error. Try this projects and these steps: 1) Open project and open NewClass.java 2) Right click on editor and choose Refactor>>Extract Superclass 3) Choose d, x, z and their getter & setter methods. 4) Change Superclass Name to SuperNewClass. 5) Click Refactor button. 6) Double Click SuperNewClass.java in project window to open it in Editor. 7) Click the Undo Button. 8) Right Click on SuperNewClass or NewClass Editor views and choose Refactor>>Undo[Extract Superclass]
still works for me.
I tried it on 2 other computers. One with Windows XP and another with Windows 7 and I still get this error. Now I am hungry. :)
Created attachment 116016 [details] stacktrace undo an extract superclass refactoring; I had probably already modified the newly created superclass
Created attachment 117599 [details] stacktrace Undo fields moved to Super Class by Refactoring>>Extract Super Class
Undo was rewritten for 7.2. Probably fixed.
(In reply to comment #8) > Undo was rewritten for 7.2. Probably fixed. This was: Product Version: NetBeans IDE Dev (Build 201203280401) Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Are you saying it has been rewritten since this build?
Are you still able to reproduce?
I really think, that it is not reproducible
(In reply to comment #11) > I really think, that it is not reproducible I get an exception now when I try to undo it. http://netbeans.org/bugzilla/show_bug.cgi?id=211607