commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From commons-...@jakarta.apache.org
Subject [jira] Closed: (JELLY-27) variables not inherited into nested scripts > level 1
Date Fri, 27 Aug 2004 08:27:21 GMT
Message:

   The following issue has been closed.

   Resolver: dion gillard
       Date: Fri, 27 Aug 2004 1:26 AM

JellyContext.getVariable now only calls parent.getVariable.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JELLY-27

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JELLY-27
    Summary: variables not inherited into nested scripts > level 1
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: jelly
 Components: 
             taglib.ant
   Fix Fors:
             1.0-beta-4

   Assignee: james strachan
   Reporter: Christian Sell

    Created: Thu, 30 Jan 2003 12:13 PM
    Updated: Fri, 27 Aug 2004 1:27 AM

Description:
I have a jelly script which imports another one. The outer script is executed from an ANT
task through AntTagLibrary. I find that variables which are defined as ANT properties are
not passed into the inner script, even though inherit=true (default).

The reason is that the JellyContex.getVariable(String) method calls parent.*findVariable*(String).
However, AntJellyContext only overrides getVariable(String), so it is never called from the
inner context.

Should AntJellyContext override *findVariable* also? It seems questionable to me to have getVariable
call findVariable in the first place. Shouldnt that be getVariable again? And what is the
distinction between the 2 anyway? I would have provided a patch, if there werent so many questions.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message