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.
Build 200404191800, j2sdk1.4.2_04 Rename of a project main class doesn't update of project settings automaticly, therefore user can expect error - Exception in thread "main" java.lang.NoClassDefFoundError: abc/def/First
IMHO P4 or ENHANCEMENT is more appropriate here; renaming a project main class and simultaneously changing the project settings should be considered a kind of refactoring, and we are not planning any such refactorings for D last I checked due to resource constraints.
Just reflecting that I agree with Jesse.
*** Issue 44716 has been marked as a duplicate of this issue. ***
And now that Refactoring has been introduced. Now that we are in Promo-D. Will you have some plan to solve the problem ? But I think that now, it would be redirected to refactoring module.
This is related to rename package/class and move class refactorings. Let's see if we can address it. (assigning to refactoring)
Reassigning to dprusa.
*** Issue 48777 has been marked as a duplicate of this issue. ***
Still under consideration for 4.0? Could be handled in j2seproject by just listening to the file with the main class and quietly updating the main class setting when it changes. Of course, if there were some kind of general hook SPI in refactoring that would permit the project type to add this as one action to list in the refactoring preview pane, that would be much nicer.
It would be very helpful if this could be handled in the j2se project for now. Thanks! Reassigning to j2se project for consideration...
Cannot be fixed properly until there is an SPI in refactoring to allow foreign modules to hook into the set of things to be refactored. Martin is there already an issue filed for this? If not, please do so and make it block this issue.
Checking in j2seproject/build.xml; /cvs/java/j2seproject/build.xml,v <-- build.xml new revision: 1.6; previous revision: 1.5 done Processing log script arguments... Mailing the commit message to cvs@java.netbeans.org (from tzezula@netbeans.org) Checking in j2seproject/nbproject/project.xml; /cvs/java/j2seproject/nbproject/project.xml,v <-- project.xml new revision: 1.12; previous revision: 1.11 done Processing log script arguments... Mailing the commit message to cvs@java.netbeans.org (from tzezula@netbeans.org) Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProject.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProject.java,v <-- J2SEProject.java new revision: 1.37; previous revision: 1.36 done RCS file: /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/MainClassUpdater.java,v done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/MainClassUpdater.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/MainClassUpdater.java,v <-- MainClassUpdater.java initial revision: 1.1 done
Verified - 200410070525