This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj flags


>>>>> "Hans" == Boehm, Hans <hans_boehm@hp.com> writes:

Hans> If the only file arguments are .java and .class files, and there
Hans> is no --main:
Hans>   1) If there is exactly one file argument, generate the --main
Hans>   2) If there is more than one, issue a warning, suggesting
Hans> --main.  (This gets a little tricky if there are nonstandard
Hans> libraries involved, which might be hiding main.  If none are
Hans> explicitly listed, a warning should certainly be safe.)

This seems reasonable to me.  Ordinarily I don't like implicit
arguments, since sometimes they bite back in the future.

Could you submit a PR suggesting this mechanism?  I like to have
things like this in Gnats so we don't lose them.

Hans> It may just be me, but I also fairly regularly found myself mistyping:
Hans> gcj --main==X X.java
Hans> which results in a fairly uninformative error message.

Please submit a (separate) PR for this too.  Doing checking here is
appropriate and easy.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]