Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ampli.kt should not use deprecated clazz.newInstance() #109

Open
MarcinVaadin opened this issue Jan 10, 2025 · 1 comment
Open

Ampli.kt should not use deprecated clazz.newInstance() #109

MarcinVaadin opened this issue Jan 10, 2025 · 1 comment

Comments

@MarcinVaadin
Copy link

Expected Behavior

Generated code should not use deprecated methods

Current Behavior

Generated code (Kotlin): val ingestionMetadata = clazz.newInstance()

Possible Solution

Replace with val ingestionMetadata = clazz.getDeclaredConstructor().newInstance()

Steps to Reproduce

  1. generate Kotlin client using latest ampli

Environment

  • AmplI: @amplitude/ampli/1.35.0 darwin-arm64 node-v21.7.1
@MarcinVaadin MarcinVaadin changed the title Replace deprecated clazz.newInstance() Ampli.kt should not use deprecated clazz.newInstance() Jan 10, 2025
@MarcinVaadin
Copy link
Author

Please move to Amplitude-Kotlin repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant