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
Do not pass ClassLoader to Class.forName, for Android #2633
Comments
ejona86
added a commit
to ejona86/grpc-java
that referenced
this issue
Jan 20, 2017
Fixes grpc#2207. This is actually a workaround. Ideally users shouldn't need to -keep classes, but it's a bit risky to fix the real issue before 1.1. The further fix will be done as part of grpc#2633. The interop app's build.gradle change is necessary to compile with newer Gradle versions. The com.google.errorprone.annotations was necessary in order to prevent annotation warnings from failing the build.
ejona86
added a commit
that referenced
this issue
Jan 23, 2017
Fixes #2207. This is actually a workaround. Ideally users shouldn't need to -keep classes, but it's a bit risky to fix the real issue before 1.1. The further fix will be done as part of #2633. The interop app's build.gradle change is necessary to compile with newer Gradle versions. The com.google.errorprone.annotations was necessary in order to prevent annotation warnings from failing the build.
ejona86
added a commit
to ejona86/grpc-java
that referenced
this issue
Jul 14, 2017
Class.forName(String) is understood by ProGuard, removing the need for manual ProGuard configuration and allows ProGuard to rename the provider classes. Previously the provider classes could not be renamed. Fixes grpc#2633
ejona86
added a commit
to ejona86/grpc-java
that referenced
this issue
Jul 14, 2017
Class.forName(String) is understood by ProGuard, removing the need for manual ProGuard configuration and allows ProGuard to rename the provider classes. Previously the provider classes could not be renamed. Fixes grpc#2633
ejona86
added a commit
that referenced
this issue
Jul 19, 2017
Class.forName(String) is understood by ProGuard, removing the need for manual ProGuard configuration and allows ProGuard to rename the provider classes. Previously the provider classes could not be renamed. Fixes #2633
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
See #2207. An easy workaround for #2207 was to specify -keep in ProGuard configuration. However, everyone would be happier if such configuration was unnecessary. Using
forName()
without passingClassLoader
should remove the need for configuration, as originally intended.The text was updated successfully, but these errors were encountered: