spring-projects/spring-framework — pull request #643 by nigelzor (2014-09-11 19:07:54+00:00)
Title: Fix enum detection in GenericConversionService

Use Enum.class.isAssignableFrom(type) in preference to type.isEnum(), since the latter returns false for enum subclasses. This was causing EnumToStringConverter not to be matched and resulted in the enum's toString() being used instead of name().

Issue: SPR-12181

I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.