cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject Re: JDK 1.3 vs JDK 1.4 issue
Date Wed, 17 Apr 2002 13:28:18 GMT
> > /* @JDBC3_START@
> >   JDK 1.4 extra code
> > @JDBC3_END@ */
>
> Change that!
>
> // @JDBC3_START@
>
> // @JDBC3_END@
>
> Because if we are not using JDK 1.4, the special tags are changed to:
>
> // /*
>
> // */
>
> Hmm, that might not work.
>
> /* /*
>
> */ */
>
> That will not compile.
>
> If we have JDK 1.4, the tags substitute for nothing, so we don't want
> them commented out all the time.
>
> It's not an easy thing to fix for both ways.....

Did I get something wrong?

Would it be this way:


without ant:
  jdk13:
     /* @JDBC3_START@
         JDK 1.4 extra code
        @JDBC3_END@ */

       COMPILES

  jdk14:
     /* @JDBC3_START@
         JDK 1.4 extra code
        @JDBC3_END@ */


       WILL NOT COMPILE

with ant:
  jdk13:
     /*
         JDK 1.4 extra code
        */

       COMPILES

  jdk14:
     /* */
         JDK 1.4 extra code
        /* */

       COMPILES

That's better than it is with *little* changes...
--
Torsten


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message