Java: NoSuchMethodException when method clearly exists

Your method is private but getMethod() only returns public method.

You need to use getDeclaredMethod().

Leave a Comment