j256 / ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
http://ormlite.com/
ISC License
1.59k stars 367 forks source link

Upgrade from 5.0 to 5.1 fails due to DatabaseType Error #93

Open bradhoov opened 6 years ago

bradhoov commented 6 years ago

When upgrading ORM-Lite in my app from 5.0 to 5.1, we suddenly start to receive the following errors: ' error: method extractTableName in class DatabaseTableConfig<T#2> cannot be applied to given types; String mapTableName = DatabaseTableConfig.extractTableName(Map.class); ^ required: DatabaseType,Class<T#1> found: Class reason: cannot infer type-variable(s) T#1 (actual and formal argument lists differ in length) where T#1,T#2 are type-variables: T#1 extends Object declared in method <T#1>extractTableName(DatabaseType,Class<T#1>) T#2 extends Object declared in class DatabaseTableConfig ' According to the documentation, this should not happen as the database type should be set internally to SqliteAndroidDatabaseType

mahdit83 commented 5 years ago

I have same errors.