Takhion / kotlin-metadata

MIT License
116 stars 14 forks source link

Can't access `processingEnv` from processor class. #4

Closed rharter closed 6 years ago

rharter commented 6 years ago

When making your processor extend KotlinAbstractProcessor and implement KotlinMetadataUtils, you cannot access the processingEnv because of the conflicting definitions in KotlinAbstractProcessor and KotlingProcessingEnvironment, from which KotlinMetadataUtils is a descendant.

The best I could come up with to work around this is to cast this as KotlinAbstractProcessor so the compiler knows which one to access.

Takhion commented 6 years ago

Hey @rharter! Don't worry, I already rewrote the KotlinAbstractProcessor part and made sure there are no conflicts, you'll get it in the next version 😉

rharter commented 6 years ago

🎉 WOOT WOOT 🎉

Nice work!