j256 / ormlite-android

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

can't find referenced class javax.persistence.Column #110

Closed jubincn closed 3 years ago

jubincn commented 5 years ago

After upgrading ormlite from 4.48 to 5.1, I met javax.persistent related warnings when assemble a realease version. The logs is like this:

Warning: com.j256.ormlite.misc.JavaxPersistenceImpl: can't find referenced class javax.persistence.Column

Add -dontwarn javax.persistence.** to proguard rules can resolve it, but I wander if this is a recommended way.

j256 commented 3 years ago

Sorry for the delay. This seems like a Proguard issue so I think your solution is correct. The JavaxPersistenceImpl is an optional class which references the javax.persistence.* annotations so I can see this warning being emitted if it was looking at all classes.