Reflective access
- MethodHandle/VarHandle type mismatch
Reports MethodHandle and VarHandle factory method calls that don't match any method or field.
- Reflective access across modules issues
Reports Class.forName() and ClassLoader.loadClass() calls which try to access classes that aren't visible in the current scope due to Java 9 module accessibility rules.
- Reflective access to non-existent or not visible class member
Reports reflective access to fields and methods that don't exist or aren't visible.
- Reflective invocation arguments mismatch
Reports cases in which the arguments provided to Method.invoke() and Constructor.newInstance() do not match the signature specified in Class.getMethod() and Class.getConstructor().
Last modified: 11 September 2024