Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 19686 invoked from network); 23 Jan 2005 16:59:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Jan 2005 16:59:27 -0000 Received: (qmail 17392 invoked by uid 500); 23 Jan 2005 16:59:25 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 17367 invoked by uid 500); 23 Jan 2005 16:59:24 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 17354 invoked by uid 99); 23 Jan 2005 16:59:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from essemtepe.nada.kth.se (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 23 Jan 2005 08:59:24 -0800 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [83.226.248.219] (localhost [127.0.0.1]) (authenticated bits=0) by smtp.nada.kth.se (8.12.10/8.12.11) with ESMTP id j0NGxAlu027528; Sun, 23 Jan 2005 17:59:11 +0100 (MET) Message-ID: <41F3D7EE.80005@nada.kth.se> Date: Sun, 23 Jan 2005 17:59:26 +0100 From: Daniel Fagerstrom User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: dynamic macro junit test [was: jx : cocoon.request object ??] References: <41EFB2FB.3020608@mobilebox.pl> <41EFCBFF.1090306@mobilebox.pl> <41EFD05E.6010309@schaubroeck.be> <41EFD0F3.3090106@mobilebox.pl> <41EFD3AC.6090308@nada.kth.se> <41F1188F.7030003@mobilebox.pl> <41F25DF1.8040404@nada.kth.se> <41F29C27.4070406@mobilebox.pl> <41F3731A.2040101@nada.kth.se> <41F39146.5040301@mobilebox.pl> In-Reply-To: <41F39146.5040301@mobilebox.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Leszek Gawron wrote: > Daniel Fagerstrom wrote: >> Leszek Gawron wrote: >>> Daniel Fagerstrom wrote: >>>> Leszek Gawron wrote: >>>>> Daniel Fagerstrom wrote: >>>>> >>>>>> Your (and others) work is needed, so that we can make the >>>>>> refactored JXTG stable enough for production use soon. >>>>> >>>>> I've been trying to trace down the problem with non working dynamic >>>>> macro test case. Funny thing is the same exception >>>>> (NumberFormatException) gets thrown for "old" JXTG. >>>> >>>> That at least means that I haven't broke it ;) It might even be good >>>> that it doesn't work as that could mean that nobody use it and it >>>> would be easier to deprecate and replace with something better. >>> >>> I am using it in my projects - and it works! This is one of most >>> common technique of mine to write more advanced macros. Magic? I >>> guess :) >> >> Ok, then it would be good if you wrote a test case that works in the >> original JXTG so that we can check that it still work in the >> refactored version. I just took the example from the documentation and >> made a test case from it. > > I checked it - works only when the pipeline is invoked from flow. Still > I have no idea how that affects parsing ${tags.example} expression. Neither have I, the test case only acceses variables that are defined in the current context, so how what it got (or not got) from flow can affect it is unclear to me. Just to avoid missunderstandings, exactly what have you tested? Original JXTG and refactored JXTG and for both: with and whithout flow? The problem (or at least one of them), seem to be connected to the hashmap. I checked in a new test case: jxSet, that works for a simple assignement but not for a hashmap. /Daniel