PropertyExpressionEvaluation returns null for certain generics

Description

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:

Main.java

Bean.java

ListValues.java

Parent.java

Child.java

Alpha.java

Beta.java

Running Main prints the following output:

Without understanding the PropertyExpressionEvaluation code too much, I think the problem is at the following line:

PropertyExpressionEvaluation.java

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?

Environment

None

Assignee

Unassigned

Reporter

Martin Cortez

Labels

Components

Affects versions

Priority

Major
Configure