MyBatis version
Probably all (Tested on 3.4.6 and 3.5.0-SNAPSHOT)
Database vendor and version
Probably all (Tested on ORACLE and HSQLDB)
Test case or example project
Pull request #1259
Steps to reproduce
Run test case from pull request #1259
Expected result
MyBatis should automap NUMERIC database type to corresponding Java type based on class inheritance.
MyBatis can do that when generic filed is specified in parent class or parent of parent class. But when generically typed field is specified in higher level of inheritance, MyBatis does not recognize generic type correctly and automaps default type for NUMERIC database type, which is BigDecimal.
Actual result
NUMERIC results in BigDeciaml instead of Integer.