Why use reflection to access class members when MethodHandle is faster?
Reflection and method handles serve different purposes, and exist at different levels of abstraction. You should use the one that is right for the problem you are solving. Reflection is a general-purpose introspection mechanism, which includes many features that the method handle mechanism lacks, such as enumerating the members of a class (Class.getMethods()), inspecting the … Read more