Why don't we have a preprocessor (Directives) in java just like C language?
or
why do we have it in c language?
-
Where is java Pre processor :-( (2 messages)
- Posted by: simar qjit
- Posted on: April 07 2005 02:58 EDT
Threaded Messages (2)
- Where is java Pre processor :-( by Paul Morie on April 13 2005 18:06 EDT
- Is now possible with annotations by Calvin Austin on April 13 2005 21:22 EDT
-
Where is java Pre processor :-([ Go to top ]
- Posted by: Paul Morie
- Posted on: April 13 2005 18:06 EDT
- in response to simar qjit
Hi Simar-
You can use the C preprocessor with java; you can use the preprocessor with any type of file, really. I work with someone who swares by this, but I think he's sort of nuts.
P -
Is now possible with annotations[ Go to top ]
- Posted by: Calvin Austin
- Posted on: April 13 2005 21:22 EDT
- in response to simar qjit
Ironically Suns own code base needs pre-processing in a few places. With the advent of the annotation processing tool you can now pre-process files before handing to the java compiler :*)