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

Common: replace use of erasure with runtimeClass #252

Closed
chuwy opened this issue Jun 20, 2020 · 3 comments
Closed

Common: replace use of erasure with runtimeClass #252

chuwy opened this issue Jun 20, 2020 · 3 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@chuwy
Copy link
Contributor

chuwy commented Jun 20, 2020

Should fix some warnings:

[warn] /vagrant/3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/utils/MapTransformer.scala:94: method erasure in trait ClassManifestDeprecatedApis is deprecated: Use runtimeClass instead
[warn]     val newInst = m.erasure.newInstance()
@chuwy
Copy link
Contributor Author

chuwy commented Jun 20, 2020

Migrated from snowplow/snowplow#2050 (comments are auto-generated)

@chuwy
Copy link
Contributor Author

chuwy commented Jun 20, 2020

This will make SCE compiling on JDK 11.

@oguzhanunlu
Copy link
Member

Thanks for the PR @szareiangm ! I can confirm Common Enrich compilation error on JDK 11 is fixed thanks to your commit!

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

No branches or pull requests

2 participants