Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-charting-dev] ambiguous constructors

Hi all,

when running a report I'm getting an error message:

org.eclipse.birt.core.exception.CoreException: There are errors evaluating script "reportContext.getMessage("Partner", vars["Locale"]);":
The choice of Java constructor getMessage matching _javascript_ argument types (string,null) is ambiguous; candidate constructors are:
    class java.lang.String getMessage(java.lang.String,java.lang.Object[])
    class java.lang.String getMessage(java.lang.String,java.util.Locale) (<inline>#1)


the corresponding code in the rptdesign file is:
vars["Locale"] = new Locale("en_UK");
....
                        <text-data id="978">
                            <_expression_ name="valueExpr">reportContext.getMessage("PartnerNummer", vars["Locale"]);</_expression_>
                            <property name="contentType">html</property>
                        </text-data>

Any idea how to solve this?

Thanks,
Uwe


Back to the top