Project: Birt
Bug 299617 ScalarParameterDefn.getUserProperty broken
Reported: 2010-01-14 04:54:55 | Status: verified fixed

The ScalarParameterDefn.getUserProperty (and getUserPropertyValues) is broken, it always returns null. This prohibits java access to the report parameters custom user properties set in the design. latest cvs source of ScalarParameterDefn overrides a perfectly working implementation of ParameterDefnBase.getUserPropertyValue: /* (non-Javadoc) * @see org.eclipse.birt.report.engine.api2.IParameterDefnBase#getUserPropertyValues() */ public Map getUserPropertyValues() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see org.eclipse.birt.report.engine.api2.IParameterDefnBase#getUserPropertyValue(java.lang.String) */ public String getUserPropertyValue(String name) { return null; }

Files changed in fix:
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/ReportEngineTest.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/GetParameterDefinitionTask.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ParameterDefnBase.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ScalarParameterDefn.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/template/TemplateExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/util/ExpressionUtil.java