From: SourceForge.net <no...@so...> - 2003-12-01 13:55:00
|
Bugs item #852074, was opened at 2003-12-01 13:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=852074&group_id=27895 Category: None Group: TM4Web/Velocity 0.1 Status: Open Resolution: None Priority: 5 Submitted By: Kal Ahmed (kal_ahmed) Assigned to: Kal Ahmed (kal_ahmed) Summary: Factory does not find correct constructor Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=852074&group_id=27895 |