Kotlin for Forge

Kotlin for Forge

54M Downloads

KotlinForForge 3.9.0+ does not contain classes from org.jetbrains:annotations

DJtheRedstoner opened this issue · 4 comments

commented

org.jetbrains:annotations is a dependency of kotlin-stdlib and was contained in previous versions of KotlinForForge. This is a critical regression for mods that depended on these classes being present at runtime.

commented

Fixed in 3.9.2

commented

May I ask why you need compile-time annotations available at runtime?

commented

They are used as part of our custom command system (which uses reflection at runtime to find handlers) to indicate optional arguments. However looking at it now, jetbrains annotations use RetentionPolicy.CLASS so our system may not actually work as intended. I will investigate further.

Edit: Yep, our system is broken.

commented

I'm not going to bundle them anymore since they're useless at runtime.