-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
Android sun.reflect.ReflectionFactory no found #1720
Comments
That is why this approach is discouraged. Rather use the method as a basis and inject a method handle, for example. What are you trying to achieve? Do you need to invoke any method? |
@raphw yes, need to invoke any method I want to make "intercept" method fit for Android |
In this case you might be able to use |
|
You need to set the |
annotation cannot be variable, constructorParameters cannot be set. Are there other way to get super object? |
That is right, but the proxy type cannot be variable either. What type do you use before |
https://github.com/caoccao/JavetBuddy/blob/main/src/main/java/com/caoccao/javet/buddy/interop/proxy/DynamicObjectExtendHandler.java#L72 |
I see. I will have to add a dynamic resolver for this. That is not much work, so I can add it to the next version. |
Thank you for your contribution and effort! |
You can now specifiy a |
The jar seems cannot be writen into "app_libs/" and only create "app_libs/oat/2QpqXOOB.jar.cur.prof" of 0KB on Android 11 Logcat:
|
@super(strategy = Super.Instantiation.UNSAFE, proxyType = TargetType.class)
could not fit Android and how to get super object.
Starting with Android 26 (Oreo, 8.0), Google began to gradually remove access to the internal sun class for reflection because it could cause security and compatibility issues.
The text was updated successfully, but these errors were encountered: