fangfangli / cleartk

Automatically exported from code.google.com/p/cleartk
0 stars 0 forks source link

Test parameter type checking in ClassifierAnnotator #370

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ReflectionUtil.getTypeParameterClass(Class) is used.
2. It only works for classes of the form class X extends Y<Z>

What is the expected output? What do you see instead?

ReflectionUtil.getTypeParameterClass(Class, Class) should be used everywhere.

Please use labels and text to provide additional information.

We need to write some tests where we mix a Classifier and a
ClassifierAnnotator with different parameter types, and make sure we're
throwing exceptions correctly.

Original issue reported on code.google.com by steven.b...@gmail.com on 5 Dec 2008 at 5:15