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.
[dev-200508021800, JDK 1.5.0_04] Steps to reproduce: 1) Opened Java project created from bingo application (part of Java Tutorial) 2) Find class bingo.game.RingMaster and method announceBall(BingoBall b) 3) Invoke Refactor | Change Method Params action 4) Add boolead param with true deafult value, click Next 5) Double click the last line in preview dialog 6) Run Do Refactoring InvalidObjectException is thrown. javax.jmi.reflect.InvalidObjectException: Object was deleted. at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.throwInvalidObject(MetadataElement.java:145) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.objectChanged(MetadataElement.java:248) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.objectChanged(LightAttrList.java:111) ... After switching editor back to RingMaster class another NullPointerException was thrown. java.lang.NullPointerException at org.netbeans.modules.java.ui.nodes.elements.ElementFormat$Tag.format(ElementFormat.java:535) at org.netbeans.modules.java.ui.nodes.elements.ElementFormat.format(ElementFormat.java:240) at org.netbeans.modules.java.ui.nodes.elements.ElementFormat.format(ElementFormat.java:263) ... No change of parameters was done.
Created attachment 23460 [details] first exc stack trace
Created attachment 23461 [details] second exc stack trace
Reproducible on following sources too (changing params of setIt() method): package javaapplication2; public class NewClass { public NewClass() { } public void setIt(String s) { } } --- package javaapplication2; public class NewClass2 { public NewClass2() { NewClass nc = new NewClass(); nc.setIt("asdf"); } } Reproducible only when displaying some of affected files (step 5 in steps to reproduce). Issue was marked as future Q-build stopper.
Fix in progress.
Fixed in trunk. Checking in javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v <-- ResourceImpl.java new revision: 1.90; previous revision: 1.89 done Checking in src/org/netbeans/modules/java/JavaEditor.java; /cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v <-- JavaEditor.java new revision: 1.198; previous revision: 1.197 done Checking in src/org/netbeans/modules/java/JavaParserGlue.java; /cvs/java/src/org/netbeans/modules/java/JavaParserGlue.java,v <-- JavaParserGlue.java new revision: 1.56; previous revision: 1.55 done
Change of params works now, but there is different problem. I'll file new issue. Verified in dev-200508171800.
*** Issue 62224 has been marked as a duplicate of this issue. ***
*** Issue 62237 has been marked as a duplicate of this issue. ***
Reorganization of java component