New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot find type handler for enum when enum value has methods #1489
Comments
Thanks for your reporting! I think this is bug. |
Workaround is adding the |
* Change to use isAssignableFrom method * Add local variable to hold Enum class
Support anonymous enum object that implement method
It should be fixed in the latest 3.5.1-SNAPSHOT. |
* Change to use isAssignableFrom method * Add local variable to hold Enum class
…with-method Support anonymous enum object that implement method
MyBatis version
3.5.0
Database vendor and version
Independent of databases and versions. For an exapmle, hsqldb in mybatis tests.
Test case or example project
https://github.com/zhzhsx/mybatis-3/tree/master/src/test/java/org/apache/ibatis/submitted/enum_with_method
Steps to reproduce
Run the test: EnumWithMethodTest#shouldInsertAUser.
Expected result
A user should be inserted into the database successfully.
Actual result
The test fails.
Notes on conditions to reproduce the issue
The text was updated successfully, but these errors were encountered: