Bug 28509 - RFE: put bugzilla info (product version, component) into source code
Summary: RFE: put bugzilla info (product version, component) into source code
Status: RESOLVED WONTFIX
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: 0.92
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-27 07:59 UTC by W. Schenk
Modified: 2007-04-01 15:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Retrieve the version of GNU Classpath (367 bytes, application/octet-stream)
2007-04-01 15:51 UTC, Andrew John Hughes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description W. Schenk 2006-07-27 07:59:10 UTC
It's not easy (read very time consuming) for a newbie like me to get the right info to fill out this bug form.

1. I would propose to include the product version in the file comment of each source file.

2. I would propose to include the component id (awt, classpath, ...) into each source code file. An alternative would be to provide a complete package -> component matching at http://gcc.gnu.org/bugzilla/describecomponents.cgi?product=classpath
Comment 1 Sven de Marothy 2006-08-03 09:40:48 UTC
Yes, Bugzilla is known to have a notoriously bad user interface. :/

However, it's (IMHO) neither feasible or particularily desireable to tag every file with their component and version number. I'm not sure the gains would justify the effort. -If you're uncertain about which version you've got, leave that field as unspecified. Similarily, if you're uncertain about which component to file it under, just file it under "classpath". If it's wrong someone will come along and put it in the right place.

Comment 2 Andrew John Hughes 2007-04-01 15:51:03 UTC
Created attachment 13314 [details]
Retrieve the version of GNU Classpath
Comment 3 Andrew John Hughes 2007-04-01 15:52:46 UTC
The version number can be retrieved from the property "gnu.classpath.version" using System.getProperties().get("gnu.classpath.version").  The attached file will do this for you.
The component can be left as 'classpath' and will be directed elsewhere by a developer if required.