java-client
java-client copied to clipboard
Switch from cglib to byte-buddy
Description
After launching the first instance of the Appium driver, I get the following warning:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/Users/aaron.schwieterman/.m2/repository/cglib/cglib/3.3.0/cglib-3.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
It seems like the best solution to avoid this warning would be to replace cglib with byte-buddy based on this issue.
Environment
- Java client build version or git revision if you use some snapshot: v7.5.0
- Java version: v15.0.2
- Appium server version or git revision if you use some snapshot: v1.20.2
- Desktop OS/version used to run Appium if necessary: macOS Big Sur v11.2.3
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: Appium.app v1.20.2
- Mobile platform/version under test: Android v11
- Real device or emulator/simulator: Real device
Code To Reproduce Issue
driver = new AndroidDriver<>(new URL(url), desiredCapabilities);
Was there a fix or workaround for this? Had issues with this today until I downgraded to Java 11. Still left with the warning, and seems like it will be a problem again in the future.
I'm having the same issue.