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.
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)
Can you please attach the project or tell us where are the sources, so we can reproduce it. Thanks.
cvs -d:pserver:YOURLOGIN@cvs.dev.java.net:/cvs co jnn Edit com.sun.tools.jnn.RSSBrowser
There is no MethodSelectionChanged method in RSSBrowser. Didn't you mean MessageSelectionChanged?
I am not able to reproduce it with MessageSelectionChanged(). :-(
Yup, sorry, I've got JavaModel on the brain :-)
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.
Tomasi, what else do you need to know?
I suppose it's not INCOMPLETE, but rather RANDOM.
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component