Java 9 deprecates Class.newInstance method
Description
Environment
Activity
It appears all these have been addressed.
I should note that although this method is deprecated in Java 9, it is not deprecated for removal either in Java 9 or the Java 10 RC. So the soonest it could be deprecated for removal would be Java 11 and the earliest it could be removed from the API would be Java 12 (March 2019).
I would be surprised if Spring was using the newInstance
method rather than the full introspection framework.
Even if it was, though, I think it's in their court to fix their stuff before Java 11, if they intend to support running under Java 11.
That's another question but I think an important one. Obviously Spring 5 is going to track Java 11 but I haven't seen anything to tell us whether Spring 4 will. Does anyone have a reference?
I can only go by personal experience, but the Eclipse and Spring tools have never successfully searched anything for me apart from just searching text, so I do search the XML that way.
Something just occurred to me. This could be being done in Spring which would be just so much fun. Are the IDE's smart enough to infer these these days? Or do you grep *.java *.xml on the string?
Deprecation text: