ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <jon.sk...@peramon.com>
Subject RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Exit.java Filter.java FixCRLF.java GenerateKey.java Get.java Jar.java
Date Thu, 11 Apr 2002 14:48:11 GMT
> 2) the static strings will be concatenated at compile time as 
> there is no variables here. check the bytecode with javap

Or even more convincingly, check the JLS - this is required behaviour of any compiler.

>From section 3.10.5:

"Strings computed by constant expressions (ยง15.28) are computed at compile time and then
treated as if they were literals."

(I agree with breaking it to under 80 chars, in case it wasn't clear :)

Jon

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message