This is needed to successfully shade the hadoop binaries on recent Java versions. Contributed by Rohit Kumar