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.
Product Version: NetBeans IDE Dev (Build 200706200326) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Userdir: D:\userdir60 Description: ============ do refactoring - rename on some local variable in form template (placed in guarded block) do refactoring UNDO do refactoring REDO Redo is not performed and if it is invoke for the first time then an exception is thrown StackTrace: =========== java.lang.NullPointerException at org.netbeans.modules.form.FormRefactoringUpdate.renameMetaComponent(FormRefactoringUpdate.java:251) at org.netbeans.modules.form.FormRefactoringUpdate.commit(FormRefactoringUpdate.java:150) at org.netbeans.modules.refactoring.api.RefactoringSession.doRefactoring(RefactoringSession.java:91) at org.netbeans.modules.refactoring.spi.impl.UndoManager$SessionUndoItem.redo(UndoManager.java:512)
Created attachment 44041 [details] 107402
Fixed. /cvs/form/src/org/netbeans/modules/form/FormRefactoringUpdate.java new revision: 1.4; previous revision: 1.3
tested on Product Version: NetBeans IDE 6.0 Milestone 10 (build 200706242201) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============ open JDA (Java Desktop Application) project. 1. insert some component in generated form - view 2. switch to editor and do refactoring - rename local variable of this component 3. do refactoring - undo 4. do refactoring - redo Then IDE gets stuck Thread dump is in attachment
Created attachment 44332 [details] Thread dump
AnnotationHolder monitor <-> Document-lock. Honza L. will fix it.
*** Issue 107232 has been marked as a duplicate of this issue. ***
Should be fixed now. Please verify on trunk, so I can merge it into the M10 branch. Thanks. Checking in AnnotationHolder.java; /cvs/editor/hints/src/org/netbeans/modules/editor/hints/AnnotationHolder.java,v <-- AnnotationHolder.java new revision: 1.13; previous revision: 1.12 done
Could you please verify this issue for M10? Thanks.
now, ide doesn't get stuck, undo/redo works in form class there is another issue with find usages described in issue http://www.netbeans.org/issues/show_bug.cgi?id=108112 but it is no longer M10 stopper verified on Product Version: NetBeans IDE Dev (Build 200706260205) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Please provide the fix for "release60-m10" branch.
The fix is merged into the M10 branch: Checking in src/org/netbeans/modules/editor/hints/AnnotationHolder.java; /cvs/editor/hints/src/org/netbeans/modules/editor/hints/AnnotationHolder.java,v <-- AnnotationHolder.java new revision: 1.12.4.1; previous revision: 1.12 done Please verify again on the branch. Thanks.
verified on M10 Product Version: NetBeans IDE 6.0M10 (build 200706270116) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b03 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)