I have a Stripes project where my domain objects have several layers of generics. It seems that in a certain combination, calling PropertyExpressionEvaluation.getType() returns null. This seems to be the simplest scenario where it fails:
Running Main prints the following output:
Without understanding the PropertyExpressionEvaluation code too much, I think the problem is at the following line:
The type returned by getBeanPropertyType() is a TypeVariable and, according to the comment, it seems like this scenario isn't handled yet. For now, I guess I can just create a few concrete classes without using so many generics... but it would be nice if this worked. Maybe my test classes will help someone figure out the correct logic?