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.
|Summary:||Rename of project main class does not update project settings|
|Product:||java||Reporter:||Marek Grummich <mgrummich>|
|Component:||Project||Assignee:||Tomas Zezula <tzezula>|
|Issue Type:||DEFECT||Exception Reporter:|
|Bug Depends on:||84806|
|Bug Blocks:||41537, 44713|
Description Marek Grummich 2004-04-21 10:18:11 UTC
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
Comment 1 Jesse Glick 2004-04-21 16:42:54 UTC
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.
Comment 2 Petr Hrebejk 2004-05-03 13:14:37 UTC
Just reflecting that I agree with Jesse.
Comment 3 Jan Becicka 2004-06-25 12:29:50 UTC
*** Issue 44716 has been marked as a duplicate of this issue. ***
Comment 4 vbrabant 2004-06-25 18:52:27 UTC
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.
Comment 5 Martin Matula 2004-06-26 11:46:38 UTC
This is related to rename package/class and move class refactorings. Let's see if we can address it. (assigning to refactoring)
Comment 6 Martin Matula 2004-07-18 22:07:46 UTC
Reassigning to dprusa.
Comment 7 Jesse Glick 2004-09-09 18:53:47 UTC
*** Issue 48777 has been marked as a duplicate of this issue. ***
Comment 8 Jesse Glick 2004-09-28 15:55:09 UTC
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.
Comment 9 Martin Matula 2004-09-29 13:32:29 UTC
It would be very helpful if this could be handled in the j2se project for now. Thanks! Reassigning to j2se project for consideration...
Comment 10 Jesse Glick 2004-09-29 16:08:03 UTC
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.
Comment 11 Tomas Zezula 2004-10-04 15:44:16 UTC
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 email@example.com (from firstname.lastname@example.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 email@example.com (from firstname.lastname@example.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
Comment 12 Marek Grummich 2004-10-07 11:29:03 UTC
Verified - 200410070525