On Thu, 22 Nov 2001 23:36:20, "Geir Magnusson Jr."
<[EMAIL PROTECTED]
wrote:
>>On 11/22/01 11:51 AM, "Anthony Mutiso"
<[EMAIL PROTECTED]>
>>wrote:
>> Hi Folks,
>>
>> I am developing a velocity application that is developed in a Java 1.1.8
>> environment. The user of the application,
>> (another group), runs the application in a Java2 environment, (of
course).
>>
>> Up until presently this has worked fine, until I developed a method that
>> accepts velocity "[ $arg1, $arg2 ]" arguments.
>> This results in the method being called with an ArrayList argument and
>> ArrayList is not in Java 1.1.8.
>>
>> I was wondering what the opposition is to adding a new collection syntax
ala
>> "{ $arg1, $arg2}" or "%[ $arg1, $arg2 ]"
>> that resulted in Vector rather then an ArrayList, making 1.1.8 code work
with
>> Velocity even for collections?
>>
>> The "[ $arg1... ]" notation is the only context issue that is
non-portable to
>> Java 1.1.8 code, is it not?
>>
>> [Please do not ask why I am hung up on building Java 1.1.8 base context
code,
>> lets just say I have little choice.]
>>
>Does everything else work? I doubt it...
Actually, yes it does, since the runtime is 1.3.1. The problem is with
the compilation of my context tool objects in a 1.1.8 environment. Until I
had
to take in method arguments via the "[...]" template form all was okay.
>Can you iterate?
All my objects collection objects have an enumeration interface. I
know there are limitations with that, but I can live with it for the
present, until all our products are re-deployed in a 1.3.1 development
environment.
My current solution is some code it developed/compiled in a 1.1.8
environment, and this one class that requires ArrayList is excluded
and built by hand with a 1.3.1 compiler. This sucks since all our
software building and test is automated and managed by another group.
Hence the idea that lead to a request of a Vector collection
implementation for some "{ ... }" or "%[ ... ]" template construct.
Thanks
Anthony
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>