commit | 265cc7f83ea3c9b4eb3495d5cb62cf6c4ea1bb2d | [log] [tgz] |
---|---|---|
author | Jacques Le Roux <jacques.le.roux@les7arts.com> | Fri Apr 01 10:41:55 2022 +0200 |
committer | Jacques Le Roux <jacques.le.roux@les7arts.com> | Fri Apr 01 10:41:55 2022 +0200 |
tree | 4de28d786469840603fb17bed1a9f0bfb073b7ac | |
parent | daa5f74b42200e1ba1f51f06bdbac0732c560916 [diff] |
Improved: Remove deprecation warning by removing direct call to Class::newInstance Class.newInstance() has a flaw, in which any Throwable from the constructor is thrown unchecked. It was deprecated in Java 9, but not marked for removal. It shows as a deprecation warning when compiling OfBiz with Java 11. Thanks: Heinz Kabutz for reporting and initially committing 0e6732b. This completes in plugins and all will we backported