Commit 49b31d2e authored by Fabien Triolet's avatar Fabien Triolet
Browse files

Corrected a bug when parameters are given to a Repeat block

parent 94115ee0
/** /**
* $Id: TLoop.java,v 1.6 2003-01-31 15:23:47 triolet Exp $ * $Id: TLoop.java,v 1.7 2003-03-26 16:08:25 triolet Exp $
* *
* Transmorpher * Transmorpher
* *
...@@ -463,6 +463,7 @@ public final class TLoop extends TProcessComposite { ...@@ -463,6 +463,7 @@ public final class TLoop extends TProcessComposite {
} }
for (int j = 0; j < listOfProcess.size(); j++) { for (int j = 0; j < listOfProcess.size(); j++) {
TProcess process = (TProcess)listOfProcess.get(j); TProcess process = (TProcess)listOfProcess.get(j);
process.setParameters(iListOfParameters);
for (int i = 0; i < iterators.size(); i++) { for (int i = 0; i < iterators.size(); i++) {
TIterator iterator = (TIterator)iterators.elementAt(i); TIterator iterator = (TIterator)iterators.elementAt(i);
......
/** /**
* $Id: TProcessComposite.java,v 1.3 2002-11-07 14:31:11 triolet Exp $ * $Id: TProcessComposite.java,v 1.4 2003-03-26 16:08:25 triolet Exp $
* *
* Transmorpher * Transmorpher
* *
...@@ -160,7 +160,6 @@ public abstract class TProcessComposite extends TProcess_Impl { ...@@ -160,7 +160,6 @@ public abstract class TProcessComposite extends TProcess_Impl {
// bind its parameters to those of the calling process // bind its parameters to those of the calling process
p.bindCallerParameters( iListOfParameters ); p.bindCallerParameters( iListOfParameters );
// bind these parameters to the processes it calls // bind these parameters to the processes it calls
for (Enumeration e = listOfProcessBasic.elements() ; e.hasMoreElements() ;) { for (Enumeration e = listOfProcessBasic.elements() ; e.hasMoreElements() ;) {
TProcess process=(TProcess)e.nextElement(); TProcess process=(TProcess)e.nextElement();
process.bindParameters(iListOfParameters); process.bindParameters(iListOfParameters);
......
/* /*
* $Id: WriteFile.java,v 1.3 2003-02-11 15:41:01 triolet Exp $ * $Id: WriteFile.java,v 1.4 2003-03-26 16:08:25 triolet Exp $
* *
* Transmorpher * Transmorpher
* *
...@@ -93,7 +93,7 @@ public final class WriteFile extends TSerializer { ...@@ -93,7 +93,7 @@ public final class WriteFile extends TSerializer {
try { try {
handler = getTransformerFactory().newTransformerHandler(); handler = getTransformerFactory().newTransformerHandler();
String method = (String)pParam.getParameter("method"); String method = (String)pParam.getParameter("method");
format = (String)pParam.getParameter("format");
if (method == null) { if (method == null) {
method = "xml"; method = "xml";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment