ParameterizedType.setParameterValues method is getting null
-----------------------------------------------------------
Key: ANN-789
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-789
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.4.0.GA
Reporter: Maxim Petrashev
Entity class has enum property that is annotated by custom user type. This UserType
implementation class implements also ParameterizedType interface.
SimpleValueBinder evaluates parameters for enum perfectly in block:
if ( BinderHelper.ANNOTATION_STRING_DEFAULT.equals( type ) ) {
if ( returnedClassOrElement.isEnum() ) {
that starts on line 160 but when setType calls setExplicitType method on line 191 last one
clear typeParameters:
line 202: typeParameters.clear();
and fillSimpleValue method path nothing to simpleValue. Last one (in this case) pass null
to ParameterizedType.setParameterValues method. I believe it should pass properties that
were initialized in
if ( BinderHelper.ANNOTATION_STRING_DEFAULT.equals( type ) ) {
if ( returnedClassOrElement.isEnum() ) {
block (as EnumType is receiving)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira