Changed exception signature for assignments reflective methods to support older Java versions