java/4918: Use of MainClass attribute when compiling a jar file

Daniel.Bonniot@inria.fr Daniel.Bonniot@inria.fr
Sun Nov 11 02:34:00 GMT 2001


>Number:         4918
>Category:       java
>Synopsis:       Use of MainClass attribute when compiling a jar file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 21 05:06:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Bonniot
>Release:        3.0.2
>Organization:
>Environment:

>Description:

When gcj is invoked on a Jar archive without a
--main= argument, it would make sense to try to get 
the main class from the archive's manifest's Main-Class 
attribute. 
If this info is here, it is most probably right.
This would save typing and errors with mispelling the class
name. 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list