提交 399b388e 编写于 作者: J Juergen Hoeller

fixed JSP SelectTag's support for rendering enum constants (SPR-7112)

上级 5af6d917
...@@ -135,7 +135,7 @@ class OptionWriter { ...@@ -135,7 +135,7 @@ class OptionWriter {
else if (this.optionSource instanceof Map) { else if (this.optionSource instanceof Map) {
renderFromMap(tagWriter); renderFromMap(tagWriter);
} }
else if (this.optionSource instanceof Class && this.optionSource.getClass().isEnum()) { else if (this.optionSource instanceof Class && ((Class) this.optionSource).isEnum()) {
renderFromEnum(tagWriter); renderFromEnum(tagWriter);
} }
else { else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册