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 64055 - UOE when renaming method
Summary: UOE when renaming method
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-09-11 18:28 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2005-09-11 18:28:21 UTC
I tried to rename a method "MethodSelectionChanged (ListSelectionEvent l)" to 
"methodSelectionChanged (ListSelectionEvent l)" (changing case).  The following
exception was thrown when I pressed Do Refactoring:

java.lang.UnsupportedOperationException: This object is immutable.
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.objectChanged(ResourceImpl.java:439)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.objectChanged(MetadataElement.java:258)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.objectChanged(MetadataElement.java:258)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.BehavioralFeatureImpl.objectChanged(BehavioralFeatureImpl.java:72)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.setName(SemiPersistentElement.java:388)
	at org.netbeans.jmi.javamodel.Method$Impl.setName(Unknown Source)
	at
org.netbeans.modules.refactoring.plugins.RenameRefactoringPlugin$RenameDOElement.performChange(RenameRefactoringPlugin.java:1064)
	at
org.netbeans.modules.refactoring.api.RefactoringSession.doRefactoring(RefactoringSession.java:67)
	at
org.netbeans.modules.refactoring.ui.RefactoringPanel$1.run(RefactoringPanel.java:579)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
Comment 1 Tomas Hurka 2005-09-16 15:10:54 UTC
Can you please attach the project or tell us where are the sources, so we can reproduce it. Thanks.
Comment 2 _ tboudreau 2005-09-16 16:22:23 UTC
cvs -d:pserver:YOURLOGIN@cvs.dev.java.net:/cvs co jnn

Edit com.sun.tools.jnn.RSSBrowser
Comment 3 Tomas Hurka 2005-09-22 12:51:51 UTC
There is no MethodSelectionChanged method in RSSBrowser. Didn't you mean 
MessageSelectionChanged?
Comment 4 Tomas Hurka 2005-09-22 13:01:35 UTC
I am not able to reproduce it with MessageSelectionChanged(). :-(
Comment 5 _ tboudreau 2005-09-22 13:46:04 UTC
Yup, sorry, I've got JavaModel on the brain :-)
Comment 6 _ tboudreau 2005-09-22 13:48:28 UTC
Hmm, strange.  I wonder if it helps to have a bogus copy of the source open also
(in another project but w/o changing package statement).  But I think that was
not the case when I did the refactoring - not sure.
Comment 7 Milan Kubec 2005-11-01 13:47:05 UTC
Tomasi, what else do you need to know?
Comment 8 Milan Kubec 2005-12-13 12:23:04 UTC
I suppose it's not INCOMPLETE, but rather RANDOM.
Comment 9 Jan Becicka 2006-10-26 16:26:44 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 10 Quality Engineering 2007-09-20 12:10:40 UTC
Reorganization of java component