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 111516 - Exception while trying to preview refactor-rename.
Summary: Exception while trying to preview refactor-rename.
Status: VERIFIED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-31 17:00 UTC by Michael Nazarov
Modified: 2007-09-07 15:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (9.17 KB, image/png)
2007-07-31 17:01 UTC, Michael Nazarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-07-31 17:00:59 UTC
Product Version: NetBeans IDE Dev (Build 200707310000)

Steps to reproduce:

1. Create BluePrint1 sample and BPEL module.
2. Add to BPEL module Sample Loan Schema.
3. Add to Sample reference to Module.
4. Open purchaseOrder and import references to inventory and newLoanApplication xsd files.
5. Select newLoanApplication file and choose Refactor->Rename.
6. Click Preview.

Exception will come:

java.util.EmptyStackException
	at java.util.Stack.peek(Stack.java:85)
	at java.util.Stack.pop(Stack.java:67)
	at javax.swing.JTree.setExpandedState(JTree.java:3359)
	at javax.swing.JTree.expandPath(JTree.java:2168)
	at javax.swing.JTree.expandRow(JTree.java:2183)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.selectNextPrev(RefactoringPanel.java:825)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.selectNextUsage(RefactoringPanel.java:790)
[catch] at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel$5$1.run(RefactoringPanel.java:714)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


In addition, after few clicks on preview tree last became strange, see screenshot.
Comment 1 Michael Nazarov 2007-07-31 17:01:23 UTC
Created attachment 45953 [details]
screenshot
Comment 2 Samaresh Panda 2007-07-31 18:04:36 UTC
Sounds like a core refactoring issue.
Comment 3 Sonali Kochar 2007-07-31 18:23:05 UTC
The stack trace shows the exception is from Refactoring core module. Transferring to the refactoring team for evaluation.
Comment 4 tonybeckham 2007-07-31 18:29:00 UTC
Product Version: NetBeans IDE Dev (Build 200707310000) 
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 
System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)

I do not get the exception following those steps, however, the new name is not reflected in schema view: column view or
tree view but is updated in the source.
Comment 5 tonybeckham 2007-07-31 18:47:44 UTC
Nevermind my last statement about rename not happening in schema view, I realize that this is not the file name of the
schema.
Comment 6 Michael Nazarov 2007-08-01 15:07:08 UTC
With latest available build no exception rises. Preview still looks strange and incorrect but it looks similar to 105726
Comment 7 Jan Becicka 2007-08-02 06:30:49 UTC
The exception is not thrown any more. The rest of issue is duplicate of 105726.
Comment 8 Michael Nazarov 2007-09-07 15:38:50 UTC
Verified.