Special directives for javac

Hi. Lately I been coding back in C/C++ and there is a little thing i miss in java. Directives like #error or #warning. I use them to mark code I know it's working and a little descriptive message.
Also things like #ifdef, etc. Is there anything similar in java?

Since 1.4 there is the assertion facility.
http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html
You can use your favourite precompiler to preprocess Java source too.
posman@linux:~/ivan> cat xx.c
public class xx {
        private final static String when = __DATE__ ;
        public static void main(String args[]) {
                System.out.println(when);

posman@linux:~/ivan> gcc -E -P xx.c >xx.java
posman@linux:~/ivan> javac xx.java
posman@linux:~/ivan> java xx
Jun  7 2005

Similar Messages

  • Special Prices for "SALE" period.

    Dear SD pricing experts,
    We seek a suggestion for a pretty common scenario wherein  when we have a SALE period -- by definition it could mean special prices for SOME of the regular items -- maybe old arrivals / improper condition of the item hence devalued but still perfectly usable, for a specific period. However for the same period, some items (quantities) of the same, which are in brand new condition, would be available for sale at the regular price.
    How can one handle this in the SAP SD pricing or related. This should be such that only the right material goes at the right price and not the GOOD material at the SALE price.
    Please note there is no separate identification' of the "devalued" items. e.g. cloth items, or cosmetic items which have lost their packaging and likewise.
    Look forward to a valuable solution to this.
    Regards,
    Tariq

    Hi,
    It is understood that you want to give special prices for certain items. The special prices can be given through discount condition  K007.
    1.     Create a condition table that includes u2018Order reasonu2019 as one of the fields. Say, the condition table includes Sales organization, Distribution channel, Division and Order reason. Say, the condition table is 650.
    2.     Create an access sequence Z001 u2013 Discount for SALE period; this access sequence has the condition table 650.
    3.     Enter this access sequence in condition type K007.
    4.     Create order reason as 101-Sale period dis A, 102-Sale period dis B, 103-Sale period dis C [Menu path: Spro >> SD >>Sales >> Sales docu header >> Define order reason]
    5.     Maintain condition record for K007 in VK11. Maintain different discounts for different order reason.
    6.     Create a sales order. If the material is eligible for discount, select the order reason [eg; 101]. The respective discount will be reflected.
    7.     The condition record is controlled by the u2018from- tou2019 validity period.
    8.     If you need to reflect the discounted price in the price PR00 itself, assign this access sequence in the condition type PR00 and maintain different prices for different order reason. You will get PR00 value directly.
    Hope this information will be useful to you.
    Regards,
    K Bharathi

  • Special consideration for BRF rules related to configuration managment

    Hello All.
    I am looking for a document or oss note that discribes if there are any special consideration for BRF rules related to configuration management and transport control?  I just learned how to spell BRF so, I would appriciate if you could direct me to the information requested above.
    Regards,
    k

    Hello All.
    I am looking for a document or oss note that discribes if there are any special consideration for BRF rules related to configuration management and transport control?  I just learned how to spell BRF so, I would appriciate if you could direct me to the information requested above.
    Regards,
    k

  • How to setup a default direction for new divs in fluid grid layout in dreamweaver?

    Hi,
    how to setup a default direction for new divs in fluid grid layout in dreamweaver? I am an RTL interface user, I need my new divs to be inserted from right to left not Left to Right! could it be in dreamweaver?
    Thanks.

    This may get me into strife, but my experience is that you are better off finding another platform for your RWD.
    The framework that I tend to use is by Zub-Foundation http://foundation.zurb.com/.
    A commercial product that I have come to appreciate can be found here http://www.projectseven.com/products/tools/composer/index.htm. Please do not mention me if you happen to choose this product.

  • What are the special conversions for time in update rules?

    What are the special conversions for time in update rules?

    Hello,
    Special conversions for time in update rules are automatically conversion rules.
    Example: If the cube contains calendar month and your transfer structure contains date, the date to month is converted automatically.
    Assign points if this helps,
    Regards,
    Jorge Diogo

  • Have Adobe Standard CS 5 (Student), and would like to upgrade to Creative Cloud (Non-Student) - won't accept my serial number for special pricing for existing users

    I currently use Adobe Standard CS 5. It was bought with the Education discount. I would like to upgrade to Creative Cloud and see that they have special pricing for existing customers that use past versions of Creative Suite. I am no longer in Education, so I will have to buy a full version. This is fine, but it won't accept my serial number for the discounted pricing. Is there something else I should be doing?

    Hi there
    Please contact our Sales team who will assist with your order - 800-585-0774
    Thanks
    Bev

  • Can anyone point me in the right direction for the link to download Acrobat 9 Standard?  I found the link to download 9 Pro but not standard.  Old computer crashed and new computer does not have a CDR/DVD rom drive.

    Can anyone point me in the right direction for the link to download Acrobat 9 Standard.  I found the link to download 9 Pro but not standard.  Old computer crashed and new computer does not have a CDR/DVD rom drive.

    Hi,
    Standard or Pro would be licensed through your serial number, the download link and downloaded file would be the same for both of them.
    Pro or Standard would be determined after you put in your serial number.
    Download Acrobat products | 9, 8
    Thank You
    Arjun

  • How to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?

    how to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?
    kindly recommend me any best one and tel me step by step how i will add more plugins n filters

    A Plug_in normally come with an installer or install instructions. Check the documentation for the plug-in you trying to install.  It sounds like you don't know what plug-ins you want to install.  In that case you don't need to install any.  At some point you may read about a plug-in and what it can do and feel you have a need for it.  Then you will have a reason to install a plug-in that is not installed by default.  There may also be a cost involved most worthwhile plug-ins are not free.
    Adobe Optional Plug_ins downloads are Plugins Adobe want to remove from Photoshop  and no longer install by default. Also at some point in time these will no longer install into the current Photoshop for Adobe will remove feature or interfaces the use. For example the CS5 optional plugins will install in Windows CS6 perpetual version 13.0.1.3 but not in Subscription version 13.1.2 or perpetual Mac version 13.0.6 fot its 64bit only and the Mac CS5 optional plug-in for Picture package is only a 32bit plug-in.
    You will need to keep and maintain old versions of Photoshop if Adobe remove features you use in new versions of Photoshop.

  • I'm going to get the I Mac and since the new I Mac doesn't have DVD drive on it I was thinking to get the Samsung SE-506AB Slim Portable Blu-ray Writer in order to burn movies from I movie do I need a special software for that since the SE-506ab comes onl

    I’m going to get the I Mac and since the new I Mac doesn’t have DVD drive on it I was thinking to get the Samsung SE-506AB Slim Portable Blu-ray Writer in order to burn movies from I movie do I need a special software for that since the SE-506ab comes only with windows software.. but I did check and it is compatible with apple. Can you please advise me and or let me know if I’m buying the right stuff or if there is any other blu ray that will work with the I mac as plug and play.
    Thank you
    Haim

    This freezing reminds me of really old Macs, long ago, in the days of the old-school peripherals like SCSI drives, terminators, scanners and the like. If you had a SCSI conflict, like the wrong device ID's or something, you'd freeze up like that. Back in those days you'd call 800-SOS-APPLE (AAPL?) and they'd run you through disconnecting all your extra hardware - Jaz and Zip drives, CD burners, scanners etc and then eliminate them one by one by adding them incrementally and testing for the freeze/bomb dialog.
    But, today we have Firewire and none of those ancient issues (no free lifetime tech support either). My iMac's ports are all full, and I only know which devices are connected when I have to remove something for another device. iSight, scanner, card reader, external hard drive, USB soundsticks, etc. You wouldn't happen to have any SCSI devices hooked up, would you?
    Out of curiosity, have you tried a different USB/Firewire port for the hard drive? Or run the hardware test DVD that comes with your computer? This weird freezing seems to suggest a problem with the computer, RAM or network more than a device. Bad devices, in my experience, cause kernel panics, not freezing.

  • How do you turn off the special characters for letters?

    How do you turn off the special characters for letters? Where you hold down the key and it comes up with variations of the letter. For example ï í î ò œ å ß ł û
    It is very annoying when I try to play any online games. Thanks for the help

    Thank you so much It worked Thank you

  • Is there a Special Character for the number of pages in a document?

    I'm creating a template (in cs6) for a series of documents of variable length, and each document needs to be numbered with the format, "page A of Z." I see the special character for inserting the current page number (A) and I'd like to have the number of pages in the document (Z) added automatically as well. Is there a wildcard, special character, or script that will accomplish this? I'd rather not have to enter the number of pages manually as the value will change as these go through the editing process; I'd prefer to have the numbers update automatically. Has anybody done this before?

    Your first suggestion is the only way to capture the last page of a book that's comprised of independent document files. The last page number text variable works only within a single document.
    Anyone who wants a last page in book text variable badly enough can post a feature request at Wishform.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices    
    Arïel wrote:
    Stop press!
    You can also, much more simply, create a new text variable. There is
    specifically one for "last page number". That's much simpler.
    Type>Text Variables>Define>New, and in the Type dropdown just select
    "last page number".
    ariel

  • The special offer for the printer that is going on with a Mac, how does that work? Is it true i can get a free printer?

    The special offer for the printer that is going on with a Mac, how does that work? Is it true i can get a free printer?

    you pay for it up front, and they give you a rebate or $99, so if you buy a $99 printer from them (Epson Stylus NX430 Small-in-One Color Inkjet Printer $99.95) then the printer becomes free. You can not get this deal unless you also buy a mac with it.

  • I use Pro Logic 9 and see that to upgrade to Pro Logic X I need to buy the full package again. Does apple offer special conditions for their Apple clients ? Are users of apple care protection plan better served ?

    I use Pro Logic 9.1.8.  and see that to upgrade to Pro Logic X I need to buy the full package again. Does apple offer special conditions for their Apple clients ? Are users of apple care protection plan better served ?

    Old saying applies here most of the time......
    "If it ain't broken, don't fix it"
    I choose to use LP9 with Snow Leopard myself (10.6.8 and 9.1.6) for most of my commercial work simply because I find that combo very stable and provides the best overall performance for my setups here... but I am also using LPX with Mavericks as part of my client support and that works fine too although with a drop in performance due to the heavier demands made on the hardware by the newer OS X and LPX graphic routines for example..

  • Query to see all BP's with a special price for an item

    Hi There,
    I'm currently still learning the product and have been tasked with finding this out, so please bear with me and let me know if there is further information that is required.
    I have a customer running SAP B1 2007 who wishes to produce a report detailing all of the BP's that have a special price for an item. 
    Therefore it would ideally show the item number, all BP's who have a special price and what that price is.
    Is there a standard report that can be run for this?  Or would a query have to be defined?
    Any help would be appreciated.

    Hi,
    AFAIK, no standard report for this. But need not to worry, you just need
    SELECT ItemCode,CardCode,Price FROM OSPP ORDER BY ItemCode,CardCode
    above simple query to cater your need.
    Best Regards,
    Hendry Wijaya

  • Special fields for FAGLL03

    Hi,
    I need to add Purchase order, vendor, vendor name, customer, customer name and ar invoice field as a special field for FAGLL03.
    I am able to add vendor, customer and purchasing number fields but I am not able to find name field for customer and vendor. Also I was not able to find ar invoice field.
    Any help will be apprecaited.
    Thanks,
    Mark

    Hello Mark,
    Here at our side this has been implemented this way. You will need ABAP consultation:
    1) Create an append structure in RFPOS structure with the new desired fields;
    2) You will have to use a BTE to implement the exit. Ask the ABAPer to create a new Z function module based on existing SAMPLE_INTERFACE_00001650.
    3) Through transaction FIBF, Menu Settings -> Products -> ...of a customer, you should create a code to identify the customization. Lets say FIN01. Don't forget to click on checkbox field to activate the business transaction event.
    4) Through transaction FIBF, Menu Settings -> Modules P/S -> ...of a customer, you should create an entry to assign the Z function module with the product. Something like below:
    Event                Product        Ctr.         Appl.                  Function module
    00001650         FIN01                          FI-FI                   Z_INTERFACE_00001650
    Hope it helps you.
    Regards,
    Daniel
    Edited by: Daniel Carvalho on Oct 2, 2009 5:14 PM

Maybe you are looking for

  • SharePoint 2013 - Office 365 Custom Rating(0-5) Sharepoint Hosted App SetRating Reputation Class using Javascript and CSOM

    I have created the list and enabled the rating feature. I want to display the List items and rate individual items from an App.  I can able to create and bind the rating control through CSOM associated with the Rating Value.  But I unable to rating w

  • I get an error when  downloading itunes 7

    The setup program runs and quicktime downloads and creates an icon and when installing the itunes portion, when the status bar is nearing the end, an error message will come up saying " Could not open key: HKEYLOCALMACHINE\Software\Classes\.cdda\Open

  • Retrieve custom property for a community

    How would you retrieve a custom property set on a Community? Is there an equilavent PT tag similar to the "pt:userInfo" tag? Any info would be appreciated!--jason

  • Unable to burn saved iDVD project

    I have exported a slideshow from iPhoto to iDVD and saved it in the Documents folder. Now when I go into iDVD to open an existing project, I can find the saved project in Documents but I am unable to get the project to open in iDVD so I can work on t

  • HTTP Session Size for clustering

    Hi all, by analyzing the HTTP Flex Session content, I noticed it contains a reference to the message broker, and so to each destination declared (which are Spring business services). The session can then get to several megabytes in size. I could not