This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/2370] Behavior of main compilation without --main is unfriendly
- From: "fitzsim at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 1 Oct 2004 16:28:02 -0000
- Subject: [Bug java/2370] Behavior of main compilation without --main is unfriendly
- References: <20010323155600.2370.hans_boehm@hp.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fitzsim at redhat dot com 2004-10-01 16:27 -------
I would like this to be even more friendly. Ideally,
gcj X.java
would generate --main automatically, as mentioned, and
gcj *.java
would generate --main if there was only one main method in the source files or
fail with a message listing the possible main methods if there were more than one.
I don't know enough about the front-end yet to know how to do this, but ideally
this is how it should work. I suppose the driver would have to be able to
search source files (and probably .class files too) for main methods, so that it
would be able to offer a list of possibilities.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |fitzsim at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2370