mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 07:39:09 +00:00
fixed JSP SelectTag's support for rendering enum constants (SPR-7112)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3279 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ class OptionWriter {
|
||||
else if (this.optionSource instanceof Map) {
|
||||
renderFromMap(tagWriter);
|
||||
}
|
||||
else if (this.optionSource instanceof Class && this.optionSource.getClass().isEnum()) {
|
||||
else if (this.optionSource instanceof Class && ((Class) this.optionSource).isEnum()) {
|
||||
renderFromEnum(tagWriter);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user