Raise the minimum supported version of Java to 17
Closes gh-28101
This commit is contained in:
@@ -557,7 +557,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
|
||||
try {
|
||||
Class<?> startClass = Class.forName(this.startClassName, false, classLoader);
|
||||
Method mainMethod = startClass.getMethod("main", String[].class);
|
||||
if (!mainMethod.isAccessible()) {
|
||||
if (!mainMethod.canAccess(null)) {
|
||||
mainMethod.setAccessible(true);
|
||||
}
|
||||
mainMethod.invoke(null, new Object[] { this.args });
|
||||
|
||||
Reference in New Issue
Block a user