@@ -610,9 +623,11 @@ public class XMLConfig extends Config {
List<CommandLinesBlock>contextCommandLinesBlocks=readCommandLinesBlocks(contextNode,context);// Correct? for "project_parameters" in /vdt/tools/Verilog/IVerilog.xml
// Each of contextParams (3 total, correct) has null context. Probably OK, same for the tool context
thrownewConfigException("Parameter ('"+id+"') cannot be re-initialized on the same context level");// wrong file name, should be per-parameter
if(this.context==null){
// Andrey: replacing with
if(this.context==context){
// That kind of check never happens, same id parameter fro the same tool (not inherited) is silently ignored
thrownewConfigException("Parameter ('"+id+"') cannot be re-initialized on the same context level in "+sourceXML);// wrong file name, should be per-parameter
}
if(this.context!=null){
/*
System.out.println ("Andrey: Trying to use already defined context for parameter '"+id+"', context='"+this.context.getName()+
"' instead of the currently processed '"+context.getName()+"' for parameter '"+this.getID()+"'"+
" isChild="+getIsChild());
*/
setIsChild(true);// Still does not work with EntityUtils.update(), only with EntityUtilsMarkChildren.update()
return;// this parameter is inherited, already processed
}
this.context=context;
}else{
System.out.println("Andrey: Trying to use already defined context '"+this.context.getName()+
"' instead of the currently processed '"+context.getName()+"' for parameter '"+this.getID()+"'");
// Andrey: Not sure if initialization is still needed - it is probably done before cloning
// System.out.println("Skipping initialization - it is already done");
// return;
if(getIsChild()){
/*
System.out.println ("Andrey: isChild is set for parameter '"+id+"' context '"+this.context.getName()+
"' instead of the currently processed '"+context.getName()+"' for parameter '"+this.getID()+"'"+