Bug 4918

Summary: Use of MainClass attribute when compiling a jar file
Product: gcc Reporter: daniel.bonniot
Component: javaAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: gcc-bugs, java-prs
Priority: P3    
Version: 3.0.2   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2005-09-30 05:24:31

Description daniel.bonniot 2001-11-21 05:06:01 UTC
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.

Release:
3.0.2
Comment 1 Dara Hazeghi 2003-05-27 05:01:32 UTC
Hello,

I can confirm that gcc 3.3 branch and mainline still don't DTRT. Rather a pity...

Dara
Comment 2 Andrew Pinski 2003-05-27 14:36:26 UTC
See Dara's comment, this would be a very nice thing to have.
Comment 3 Andrew Pinski 2016-09-30 22:51:41 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.