Description
public static <T> Expression headerExpression(final String headerName, final Class<T> type) {
return headerExpression(simpleExpression(headerName), constantExpression(type));
{{ }}}
and
{{ public static Expression headerExpression(final Expression headerName, final Expression typeName)}}
}}{{
tries to resolve the type via
String text = typeName.evaluate(exchange, String.class);
which results in the String "class xxx.yyy.type". Trying to resolve that as a class obviously is bound to fail. I'm not sure whether the type converter should be changed here or the headerExpression code is wrong.
This worked in 3.1.0, btw.