Kal Ahmed
-
2004-01-31
- labels: --> TM4Web
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.