[hibernate-issues] [Hibernate-JIRA] Created: (ANN-789) ParameterizedType.setParameterValues method is getting null

Maxim Petrashev (JIRA) noreply at atlassian.com
Fri Dec 5 13:59:15 EST 2008


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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list