From: SourceForge.net <no...@so...> - 2005-02-12 21:06:53
|
Bugs item #1121504, was opened at 2005-02-12 14:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1121504&group_id=44253 Category: Project Facility Group: Ugly Status: Open Resolution: None Priority: 5 Submitted By: Eric Cheng (ericcheng) Assigned to: Nobody/Anonymous (nobody) Summary: Project Main Document Heuristics should not be hard-coded Initial Comment: DrJava does not allow the execution of a main method in a static inner class. For example: public class foo { public static class bar { public static void main (String[] args) { //... } } } Since the project properties dialog selects a main document as a java file instead of a class name, it won't be able to run the main method, and it is not accessible from the "Run document's main method" context menuitem either. A quick solution (without doing any parsing) would be to let the user specify the "class name", not the java file that contains the main method. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1121504&group_id=44253 |