Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#83 Factory does not find correct constructor

TM4Web/Velocity 0.1
open
Kal Ahmed
TM4Web (3)
5
2004-01-31
2003-12-01
Kal Ahmed
No

The Factory class locates the wrong constructor when
invoked on a class with multiple constructors with
different numbers of parameters. In this case, the
org.tm4j.vtl.comparators.ResultsComparator class has
constructors:

ResultsComparator(UnaryFunction) and
ResultsComparator(UnaryFunction, Comparator)

Using the factory for Velocity as:

$factory.create("org.tm4j.vtl.comparators.ResultsComparator",
$extractor)

Results in an error message saying that the constructor
was invoked with the wrong number of arguments.

Discussion

  • Kal Ahmed
    Kal Ahmed
    2004-01-31

    • labels: --> TM4Web