Skip to content

Commit

Permalink
fixed TED[58382]:[os][430]Regression_215762 fail in Junit test of
Browse files Browse the repository at this point in the history
org.eclipse.birt.report.tests.model. revert the
regression_215862_golden.rptdesign to previous version.fixed getUpdated
Exprssion() change the previous expression type pitfall while remaining
contain the updated name.
  • Loading branch information
yi.yuan committed Apr 2, 2013
1 parent 7006e8e commit cf052b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ private Expression getUpdatedExpression( Expression old,
return null;

String expr = old.getStringExpression( );
String type = old.getUserDefinedType( );
String type = old.getType( );
Map<String, String> updateMap = getUpdateBindingMap( expr, nameMap,
type );

Expand All @@ -778,7 +778,7 @@ private Expression getUpdatedExpression( Expression old,
newExpr = newExpr.replaceAll( "(\\W)" + oldName + "(\\W)", //$NON-NLS-1$ //$NON-NLS-2$
"$1" + newName + "$2" ); //$NON-NLS-1$ //$NON-NLS-2$
}
return new Expression( newExpr, type );
return new Expression( newExpr, old.getUserDefinedType( ) );
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,12 @@ from OFFICES]]></xml-property>
<list-property name="boundDataColumns">
<structure>
<property name="name">COUNTRY</property>
<expression name="expression">dimension["location"]["COUNTRY"]</expression>
<expression name="expression">dimension["location1"]["COUNTRY"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">OFFICECODE_location/COUNTRY</property>
<expression name="expression">measure["OFFICECODE"]</expression>
<expression name="expression">measure["OFFICECODE1"]</expression>
<property name="dataType">integer</property>
<simple-property-list name="aggregateOn">
<value>location1/COUNTRY</value>
Expand Down

0 comments on commit cf052b0

Please sign in to comment.