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 208526

Summary: AssertionError at org.netbeans.modules.refactoring.java.ui.RenameRefactoringUI.create
Product: java Reporter: Jesse Glick <jglick>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 185153
Bug Depends on:    
Bug Blocks: 53192    
Attachments: stacktrace

Description Jesse Glick 2012-02-16 19:43:25 UTC
Build: NetBeans IDE Dev (Build 20120216-7e59857a6a14)
VM: Java HotSpot(TM) Client VM, 20.5-b03, Java(TM) SE Runtime Environment, 1.6.0_30-b12
OS: Linux

User Comments:
jglick: Trying rename refactoring on a "reduced package" tree node.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.refactoring.java.ui.RenameRefactoringUI.create(RenameRefactoringUI.java:407)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$3.createRefactoringUI(ContextAnalyzer.java:140)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$NodeToFileObjectTask.run(ContextAnalyzer.java:498)
   at org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:153)
   at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider.doRename(RefactoringActionsProvider.java:81)
   at org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory.doRename(ActionsImplementationFactory.java:91)
Comment 1 Jesse Glick 2012-02-16 19:43:28 UTC
Created attachment 115845 [details]
stacktrace
Comment 2 Jan Becicka 2012-02-23 11:17:34 UTC
changeset:   213572:516c5bf80d50
user:        Jan Becicka <jbecicka@netbeans.org>
date:        Thu Feb 23 11:39:41 2012 +0100
Comment 3 Jesse Glick 2012-02-23 15:26:59 UTC
Thanks. I guess you were able to reproduce, since reduced tree mode is in trunk now?
Comment 4 Jan Becicka 2012-02-23 15:52:08 UTC
Yes it is. But the very same exception was thrown also for regular folders (in Files View)
Comment 5 Quality Engineering 2012-02-24 09:29:23 UTC
Integrated into 'main-golden', will be available in build *201202240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/516c5bf80d50
User: Jan Becicka <jbecicka@netbeans.org>
Log: #208526
proper handling of file renames