Bug 4918 - Use of MainClass attribute when compiling a jar file
Summary: Use of MainClass attribute when compiling a jar file
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 3.0.2
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-21 05:06 UTC by daniel.bonniot
Modified: 2005-09-30 05:24 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-09-30 05:24:31


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.