----- Original Message -----
From: "Dominique Devienne" <[EMAIL PROTECTED]>
To: "'Ant Developers List'" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 9:53 AM
Subject: RE: preprocessing java source


> That's the way to go, but without the reflection please!!!
>
> As Costin hammered out, you don't need reflection to deal with JDK
specific
> code (or platform), but simply to encapsulate dependent code (jdk or
> platform) into various concrete implementations of an abstract type (class
> or interface) defining all of the required functionalities. Then simply
> select the right implementation at run-time, dynamically, using Java's
great
> dynamic loading abilities.
>
> Then in Ant's <javac>, conditionally include/compile/package the correct
> code depending on the jdk/platform, as Ant does itself when compiling its
> optional jar.
>
> This is the real reason you don't need pre-processors in Java. --DD

but assert ; is a special case....it's nice to have them, yet the moment you
use them you are bound to 1.4. Jon Skeet was bouncing round the idea of
doing jar fixup though...



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to