Ideas on storing version (ptf) info at the class level

Our product is regulated by the FDA and so must do a lot of extra documentation chores. One thing we need to do is track version numbers (we call 'em PTF's) for each source file and .class file.
We are playing with ideas on an easy way to go about this. Source files are easy. We can just put it in the comments at the top.
.class file are more difficult. We'd like to be able to take any given class file and read the PTF number off of it. We can't just store the information in a DB somewhere because that just tells us what the PTF number is supposed to be, not what it actually is. We already have a DB and we need to compare the numbers in it with the actual. Nor can we just check the source unless we can guarantee that the .class file was generated from that source and no other since it was last changed.
Does anyone have an idea on this? Have you or your company dealt with this issue?
Thanks for your input.

Using reflection is, of course, an excellent idea. I experiemented with it and got it working quite nicely except I ran into this problem:
It only works on public classes. Some of our classes have default accessibility. I create Class objects for them and read the methods out of them, but I can't call them.
Granted, we could make all of our classes public and just protect everything inside them individually, but we'd rather not make rules.
For now we are going to hack the .class files. I have a nice little utility up and running that does this for .class or .jar files. Thanks for your ideas folks!

Similar Messages

  • Why do we need the @EJB annotation at the class level?

    Why do we need the @EJB annotation at the class level?
    Eg: Why do we need the first piece of code, when the second code seems much simpler .
    *1.*
    @Stateful
    @EJB(name="ejb/TradeLocalNm",
    beanInterface=TradeLocal.class)
    public class TradeClientBean implements TradeClientRemote {
    *2.*
    @Stateful
    public class TradeClientBean implements TradeClientRemote {
    @EJB private TradeLocal trd;
    }

    I think it is possible to do it in an aggregated level however you need to define your distribution rules in order to get the desired result, you need also to consider that if distribution rules changes and the value after promotional planning returns the same value, it is possible that detailed level are not realigned to the new distribution rule (e.g. regarding another ratio).
    Maybe this is one of several causes.
    Regards,
    Carlos

  • Need info on the class that is used for BUILHEADER Genil query

    Hi All,
    Can some one pls let me know the class that is called by executing the query BUILHEADER.
    I m facing a strange error, everytime when i search and open any account other than sold to party in WEBUI, I am noticing soldto party in the Roles Assignment block. But the business partner in the backend is not having hte role sold to party. i am not finding how this defaulting is happening automatically.
    Any pointers/clues on this will be very very helpful.
    Thanks,
    Udaya

    Hello Udaya,
    The class is CL_BUIL_HEADER Copy it and redifine method GET_RESULT_TABLE.
    then goto SPRO I'm not remember exactly where you should change the SAP class into yours.
    Sorry it was on ICWC5.0 and not CRM2007
    Eli Steklov
    Edited by: Eli Steklov on Jul 16, 2008 3:52 PM

  • Storing archive device info in the asset.

    If I restore an asset, first of all I need to keep the original directory structure, WHY???
    And secondly, FCS deletes it from that archive... WHY???
    And if I want to copy it back to that archive device after I have used it, I have no information from which archive device I restored it from. This makes it impossible to keep duplicates of archives... I have no chance of remebering from which archive which file belongs to?
    Or am I missing some thing?

    Final Cut Server archives asset to a filesystem based directory structure i.e.
    Archive Device Folder/5
    With Archive Device Folder being the folder location of the device you specified an Archive Device and 1 being the Device ID that the asset originated from. For example "Library"
    If you archive an asset from the Library device it will create a folder hierarchy similar to that above, and copy the primary representation or hi res file to that location.
    You need to keep this directory structure in place because FCSvr references where it's put the asset based on the device the asset was originally stored and/or the FCP project it's a member of.
    If you remove/delete this archive device's directory hierarchy, you'll need to recreate it in order for FCSvr to properly restore an asset.
    Once you archive an asset, look at the Resource tab in asset's detail window. There will be a Link Type entry named Archive Copy. This will note what Device the assets has been archive to as well as the path and filename of the asset. Recreating this will allow FCSvr to restore the asset.
    Let me know if this answer any of your questions. Thanks.

  • A site I use (strongly) suggested the use of Firefox 3.5 as there have been problems within the version 3.6 and the site. How can I download the (much) older version Firefox 3.5 for proper use of this web site?

    My online college course-room has a "Computer System Check"application that tells you when you are using the best version for working with the classes as their application development is written. They say that they have troubles with Firefox 3.6. (I have seen a couple of minor issues, but nothing too far off the mark.)
    The site is through Capella University and maybe you could work with their "Learner Support" to help them bring their software up to work with the latest Firefox version/revision.

    Reference site:-
    http://odyniec.net/blog/2010/02/running-multiple-versions-of-firefox-in-ubuntu-9-10/
    I have modified the original Fedora firefox script from /usr/bin/firefox to be /usr/bin/firefox-old.
    Then I modified the script firefox-old to change the LAUNCHER from "/usr/bin/firefox" , which now points to my FF7.0.1 to the $MOZ_PROGRAM which has been setup earlier to the correct binary /usr/lib64/firefox-3.6/firefox<br />
    <br />
    <pre><nowiki>##
    ## Set MOZ_APP_LAUNCHER for gnome-session
    export MOZ_APP_LAUNCHER="$MOZ_PROGRAM -no-remote -P Firefox-3.6"
    </nowiki></pre>

  • HELP!  I had iPhoto on my mac, for some reason it was not responding down loaded a new version but can't find my photos. any ideas please.  I thought once on the mac always on the mac.

    HELP!  I had iPhoto on my mac, for some reason it was not responding or damaged.   down loaded a new version but can't find my photos. any ideas please.  I thought once on the mac always on the mac.

    Sorry but we need details to help
    What version of the OS do you have? What has changed since iPhtoo worked?
    What exactly is the problem - you say "it was not responding" - You downloaded a new version (what version)" -you can't find yoru photos" none of which is helpful
    look in your applications folder - is there an Iphoto application there? If so get info and report the version
    Look in the picures folder - is there an iPhoto library there? If so exactly (including exact error messages) happens if you double click on it?
    what else can you tell us that might help us assist you?
    LN

  • HT1208 Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Use it the same way as previously.
    ctrl B shows the menus.
    ctrl S shows the sidebar.
    What else do you need help with?

  • Some calendars in iCal appear corrupted but OK on iPhone. If I sync will the calendar data on the phone restore info on the desktop iCal? any other ideas for how to sort this please?

    Some calendars in iCal appear corrupted (ie have red exclamation mark by them) but are still OK on iPhone. If I sync, will the calendar data on the phone restore info on the desktop iCal or will I lose that as well? Or could I back up the calendars on my iPhone somewhere and then import them into iCal? any other ideas for how to sort this please? it's driving me mad. thanks.

    I don't think there will be a solution to this. Exchange 2003 just isn't supported.

  • How do I make my iPhoto Library's version number appear in the Get Info window?

    I recently (within the past 2 weeks) purchased a new 27 inch iMac and have been importing data (applications and files) from my 2010 Macbook Pro via AirDrop.  One of the first files I migrated over was my iPhoto Library.  I doing so, I noticed a few differences between its file attributes and those of the iPhoto Library file created by default on my new computer - two of which I'll note here.  First, I noticed that the file resident on my new OS was labeled iPhoto Library.photolibrary while my older version did not have the ".photolibrary" extension.  That seemed simple enough to correct so I added that extension to my old library file.  The second difference I'd note - and the source of my question - is that the default iPhoto Library file displayed a version number (9.5.1) in its "Get Info" window, while mine did not.  I checked my file's info.plist file and the correct information seems to be listed.  It reads (in part):
    <dict>
                   <key>CFBundleGetInfoString</key>
                   <string>iPhoto Libary 9.5.1</string>
                   <key>CFBundleShortVersionString</key>
                   <string>9.5.1</string>
    </dict>
    </plist>
    I'm not sure this is really a question for the iPhoto community, as it seems like a more general issue; but, this is my first post to these forums, and I didn't know where to start.  Thanks in advance for the advise/suggestions.

    In terms of the info.plist file, I only reviewed it to see why I wasn't seeing the version number in the GetInfo window.
    The string "<key>CFBundleGetInfoString</key>
                   <string>iPhoto Libary 9.5.1</string>"
    is exactly what will be shown in the Get Info panel. I tested that by simply editing this string in a test library using XCode. I could "Get Info" to show ridiculous versions numbers this way.
    However, none of my older iPhoto libraries will show the version string in Get Info, only libraries I created with iPhoto 9.5.1. or Aperture 3.3 or later.
    There is probably one of the other database files in the folder "database" - *.appdb and *.db  interfering.  None of the Library First Aid options did make the version number show for my older iPhoto libraries - not even rebuilding the iPhoto library. The only way I could make the version number show in "Get Info" was by exporting the library as a new library using Aperture. But this exported library is now showing as Aperture library.

  • The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • Can I get the version info using the SDK?

    Can I get the verion info from the SDK (Web Services SDK or Enterprise SDK)? For instance, for BOE XI R2, I can get some info like this "boexir2", so that I know jar files are for BOE XI R2. If this info can be retrieved, could you please tell me how I should do? Thanks.

    Sure, but the odds are that you'll find the regular non-upgrade boxed version for less than the upgrade price, especially as we get nearer the holidays.

  • Why can't I choose the application version via "get info" in the finder anymore

    Upgraded to Maverick and installed Indesign CC 2014 only to find Suitcase has not kept up with an upgrade so fonts are not opening. I would like to use Indesign CC (9.2.2) until the font issues are resolved but cannot choose the application version via "get info" in the finder anymore (it just reverts back to CC 2014 when I select CC). I prefer not to uninstall CC 2014 but will if that is the only option.

    We don't overwrite your apps so you can keep previous workflows. . Delete apps you don't want when you are ready.
    https://helpx.adobe.com/creative-cloud/faq.html#deskApps
    BLOG POST : http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    Creative Cloud Help | Install, update, or uninstall apps
    Hope it helps you.
    Regards
    Rajshree

  • WHY DOES MY MAC BOOK PRO SHUT OFF ON ME? SO FAR THE INFO I GOT 4 IT IS A MAC OS X VERSION 10.7.3 THE PROCESSOR IS 2.4 GHZ INTEL CORE 2 DUO MEMORY IS 2 GB 667MHZ DDR2 SDRAM I DON'T KNOW HOW OLD IT IS BECAUSE I BOUGHT IT USED SORRY I HOPE THIS HELPS THANK Y

    WHY DOES MY MAC BOOK PRO SHUT OFF ON ME? SO FAR THE INFO I GOT 4 IT IS A MAC OS X VERSION 10.7.3 THE PROCESSOR IS 2.4 GHZ INTEL CORE 2 DUO MEMORY IS 2 GB 667MHZ DDR2 SDRAM I DON'T KNOW HOW OLD IT IS BECAUSE I BOUGHT IT USED SORRY I HOPE THIS HELPS THANK YOU

    Sounds to me like you may have gotten a machine with hardware issues, but it's hard to say.  It will shut down if it gets too hot, but that's not a normal occurrence.  I have never seen a MacBook Pro shut down due to heat, even after lengthy 3D gaming sessions where the fans are running fast and the bottom of the machine is unpleasant to touch.
    First thing I would try to do is reset the SMC.  If that doesn't help, erase the hard drive and reinstall the system from scratch, which you should always do with a used machine anyway.
    If a fresh system doesn't help, you'll need to get it checked out by Apple.
    Edit: Oh, and sig is absolutely right...  please don't post in all caps!  It's very irritating.

  • I have a problem after update version 6.0.1, the call not smoothly. how is your ideas?

    i have a problem after update version 6.0.1, the call not smoothly. how is your ideas?

    Hi all
    Like to share that my AV Adapter problem is solved ... brought it to Apple Service Center as a last resort after the new iOS v5.1 did not solve mine like some others have theirs solved.
    In fact, the Apple Service Center tried my AV Adapter and find that it does not work with their iphone and ipad too and flagged for a replacement.
    Just this week collected the replacement and tested that the replaced adapter works !
    So this "unsupported device" error msg could also be due to faulty adapter .... although it is unbelievable that a "simple" wired connector could so easily breakdown after 1 time use !   I never did believe that it can be broken so easily as we hardly used it after the first testing with our TV on HDMI.
    Closing this chapter of mine finally.

  • If I download the new version will I lose the info I already have?

    I have 6.0 but want to download the 7.0 version. Will I lose the 1548 songs I currently have on the 6.0 version if I download the new version or will all info transfer?

    Everything will transfer just fine---you'll just a get a new interface and some new functions, but all your music and playlists, whatever, will still be just as you set it up in iTunes 6.
    Although, I use iTunes on my Mac and I have had no problems, and it seems that some people are having some trouble with iTunes 7 on Windows, so maybe you might want to check through the forums and maybe wait a bit.
    :))

Maybe you are looking for