You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Paulo Gaspar <pa...@krankikom.de> on 2002/02/27 02:51:03 UTC
Recursion bug in local VelociMacros
Hi,
I have a "tree builder" that uses VelociMacro recursion
just (the macro) as the sample at:
\jakarta-velocity\examples\xmlapp_example
But this does not work correctly when I set
velocimacro.permissions.allow.inline.local.scope
to true like in:
m_runtimeInstance.setProperty(RuntimeInstance.VM_PERM_INLINE_LOCAL,
"true");
With 1.2 release it only displays the top 3 levels and
then the name of the macro (like "#showTree") for each
call for the 4th level... without calling it.
If I do not change the default value of the above
property everything is ok... but I really miss having
inline macros to be local in my stuff!
=:o/
I took a look at the source but I am still lost. Any
pointers someone? (Geir?)
Thanks and have fun,
Paulo Gaspar
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Recursion bug in local VelociMacros
Posted by Paulo Gaspar <pa...@krankikom.de>.
The fix seems to work very well!
Thanks a lot Geir. There is no faster support on the planet!
Have fun,
Paulo Gaspar
> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
> Sent: Thursday, February 28, 2002 5:41 AM
> To: Velocity Developer's List
> Subject: Re: Recursion bug in local VelociMacros
>
>
> Ok, I have the fix. I need to contemplate my navel though - It's minor, I
> think it's perfectly harmless and simply an oversight, but I want
> to be sure
> this close to 1.3. Will check in tonight or tomorrow morning early.
>
> Geir
>
>
> On 2/27/02 2:53 PM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
>
> > Thanks Geir,
> >
> > Paulo
> >
> >> -----Original Message-----
> >> From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
> >> Sent: Wednesday, February 27, 2002 6:42 PM
> >> To: Velocity Developer's List
> >> Subject: Re: Recursion bug in local VelociMacros
> >>
> >>
> >> On 2/27/02 9:46 AM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
> >>
> >>> Please... just some guidance and I will try to fix it myself.
> >>
> >> As soon as I have some...
> >>
> >>>
> >>> Have fun,
> >>> Paulo Gaspar
> >>>
> >>>> -----Original Message-----
> >>>> From: Paulo Gaspar [mailto:paulo.gaspar@krankikom.de]
> >>>> Sent: Wednesday, February 27, 2002 2:51 AM
> >>>> To: Velocity-Dev
> >>>> Subject: Recursion bug in local VelociMacros
> >>>>
> >>>>
> >>>> Hi,
> >>>>
> >>>>
> >>>> I have a "tree builder" that uses VelociMacro recursion
> >>>> just (the macro) as the sample at:
> >>>> \jakarta-velocity\examples\xmlapp_example
> >>>>
> >>>>
> >>>> But this does not work correctly when I set
> >>>> velocimacro.permissions.allow.inline.local.scope
> >>>>
> >>>> to true like in:
> >>>> m_runtimeInstance.setProperty(RuntimeInstance.VM_PERM_INLINE_LOCAL,
> >>>> "true");
> >>>>
> >>>>
> >>>> With 1.2 release it only displays the top 3 levels and
> >>>> then the name of the macro (like "#showTree") for each
> >>>> call for the 4th level... without calling it.
> >>>>
> >>>>
> >>>> If I do not change the default value of the above
> >>>> property everything is ok... but I really miss having
> >>>> inline macros to be local in my stuff!
> >>>> =:o/
> >>>>
> >>>>
> >>>> I took a look at the source but I am still lost. Any
> >>>> pointers someone? (Geir?)
>
> --
> Geir Magnusson Jr. geirm@optonline.net
> System and Software Consulting
> Java : the speed of Smalltalk with the simple elegance of C++...
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Recursion bug in local VelociMacros
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Ok, I have the fix. I need to contemplate my navel though - It's minor, I
think it's perfectly harmless and simply an oversight, but I want to be sure
this close to 1.3. Will check in tonight or tomorrow morning early.
Geir
On 2/27/02 2:53 PM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
> Thanks Geir,
>
> Paulo
>
>> -----Original Message-----
>> From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
>> Sent: Wednesday, February 27, 2002 6:42 PM
>> To: Velocity Developer's List
>> Subject: Re: Recursion bug in local VelociMacros
>>
>>
>> On 2/27/02 9:46 AM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
>>
>>> Please... just some guidance and I will try to fix it myself.
>>
>> As soon as I have some...
>>
>>>
>>> Have fun,
>>> Paulo Gaspar
>>>
>>>> -----Original Message-----
>>>> From: Paulo Gaspar [mailto:paulo.gaspar@krankikom.de]
>>>> Sent: Wednesday, February 27, 2002 2:51 AM
>>>> To: Velocity-Dev
>>>> Subject: Recursion bug in local VelociMacros
>>>>
>>>>
>>>> Hi,
>>>>
>>>>
>>>> I have a "tree builder" that uses VelociMacro recursion
>>>> just (the macro) as the sample at:
>>>> \jakarta-velocity\examples\xmlapp_example
>>>>
>>>>
>>>> But this does not work correctly when I set
>>>> velocimacro.permissions.allow.inline.local.scope
>>>>
>>>> to true like in:
>>>> m_runtimeInstance.setProperty(RuntimeInstance.VM_PERM_INLINE_LOCAL,
>>>> "true");
>>>>
>>>>
>>>> With 1.2 release it only displays the top 3 levels and
>>>> then the name of the macro (like "#showTree") for each
>>>> call for the 4th level... without calling it.
>>>>
>>>>
>>>> If I do not change the default value of the above
>>>> property everything is ok... but I really miss having
>>>> inline macros to be local in my stuff!
>>>> =:o/
>>>>
>>>>
>>>> I took a look at the source but I am still lost. Any
>>>> pointers someone? (Geir?)
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Java : the speed of Smalltalk with the simple elegance of C++...
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Recursion bug in local VelociMacros
Posted by Paulo Gaspar <pa...@krankikom.de>.
Thanks Geir,
Paulo
> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
> Sent: Wednesday, February 27, 2002 6:42 PM
> To: Velocity Developer's List
> Subject: Re: Recursion bug in local VelociMacros
>
>
> On 2/27/02 9:46 AM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
>
> > Please... just some guidance and I will try to fix it myself.
>
> As soon as I have some...
>
> >
> > Have fun,
> > Paulo Gaspar
> >
> >> -----Original Message-----
> >> From: Paulo Gaspar [mailto:paulo.gaspar@krankikom.de]
> >> Sent: Wednesday, February 27, 2002 2:51 AM
> >> To: Velocity-Dev
> >> Subject: Recursion bug in local VelociMacros
> >>
> >>
> >> Hi,
> >>
> >>
> >> I have a "tree builder" that uses VelociMacro recursion
> >> just (the macro) as the sample at:
> >> \jakarta-velocity\examples\xmlapp_example
> >>
> >>
> >> But this does not work correctly when I set
> >> velocimacro.permissions.allow.inline.local.scope
> >>
> >> to true like in:
> >> m_runtimeInstance.setProperty(RuntimeInstance.VM_PERM_INLINE_LOCAL,
> >> "true");
> >>
> >>
> >> With 1.2 release it only displays the top 3 levels and
> >> then the name of the macro (like "#showTree") for each
> >> call for the 4th level... without calling it.
> >>
> >>
> >> If I do not change the default value of the above
> >> property everything is ok... but I really miss having
> >> inline macros to be local in my stuff!
> >> =:o/
> >>
> >>
> >> I took a look at the source but I am still lost. Any
> >> pointers someone? (Geir?)
> >>
>
> I
> --
> Geir Magnusson Jr. geirm@optonline.net
> System and Software Consulting
> Java : the speed of Smalltalk with the simple elegance of C++...
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Recursion bug in local VelociMacros
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 2/27/02 9:46 AM, "Paulo Gaspar" <pa...@krankikom.de> wrote:
> Please... just some guidance and I will try to fix it myself.
As soon as I have some...
>
> Have fun,
> Paulo Gaspar
>
>> -----Original Message-----
>> From: Paulo Gaspar [mailto:paulo.gaspar@krankikom.de]
>> Sent: Wednesday, February 27, 2002 2:51 AM
>> To: Velocity-Dev
>> Subject: Recursion bug in local VelociMacros
>>
>>
>> Hi,
>>
>>
>> I have a "tree builder" that uses VelociMacro recursion
>> just (the macro) as the sample at:
>> \jakarta-velocity\examples\xmlapp_example
>>
>>
>> But this does not work correctly when I set
>> velocimacro.permissions.allow.inline.local.scope
>>
>> to true like in:
>> m_runtimeInstance.setProperty(RuntimeInstance.VM_PERM_INLINE_LOCAL,
>> "true");
>>
>>
>> With 1.2 release it only displays the top 3 levels and
>> then the name of the macro (like "#showTree") for each
>> call for the 4th level... without calling it.
>>
>>
>> If I do not change the default value of the above
>> property everything is ok... but I really miss having
>> inline macros to be local in my stuff!
>> =:o/
>>
>>
>> I took a look at the source but I am still lost. Any
>> pointers someone? (Geir?)
>>
I
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Java : the speed of Smalltalk with the simple elegance of C++...
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Recursion bug in local VelociMacros
Posted by Paulo Gaspar <pa...@krankikom.de>.
Please... just some guidance and I will try to fix it myself.
Have fun,
Paulo Gaspar
> -----Original Message-----
> From: Paulo Gaspar [mailto:paulo.gaspar@krankikom.de]
> Sent: Wednesday, February 27, 2002 2:51 AM
> To: Velocity-Dev
> Subject: Recursion bug in local VelociMacros
>
>
> Hi,
>
>
> I have a "tree builder" that uses VelociMacro recursion
> just (the macro) as the sample at:
> \jakarta-velocity\examples\xmlapp_example
>
>
> But this does not work correctly when I set
> velocimacro.permissions.allow.inline.local.scope
>
> to true like in:
> m_runtimeInstance.setProperty(RuntimeInstance.VM_PERM_INLINE_LOCAL,
> "true");
>
>
> With 1.2 release it only displays the top 3 levels and
> then the name of the macro (like "#showTree") for each
> call for the 4th level... without calling it.
>
>
> If I do not change the default value of the above
> property everything is ok... but I really miss having
> inline macros to be local in my stuff!
> =:o/
>
>
> I took a look at the source but I am still lost. Any
> pointers someone? (Geir?)
>
>
> Thanks and have fun,
> Paulo Gaspar
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>