This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

preprocessing java source


I'd like to experiment with creating different runtime profiles, similar to the J2ME profiles for embedded systems.
 
This will require different versions of some of the core classes (no floating point, no finalization, etc).  I can just copy the .java files and maintain different versions -- but I'd rather just conditionally compile the code.
 
I think the only preprocessing required will be to support...
 
#ifdef USE_FINALIZATION
#else
#endif
 
...style preprocessing.
 
I wouldn't be so worried if we didn't share code with Classpath. 
 
Any ideas/opinions?
 
AG

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]