ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs
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 :)


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message