We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c578031 commit 31e87cbCopy full SHA for 31e87cb
1 file changed
src/main/java/org/apache/commons/cli/TypeHandler.java
@@ -117,7 +117,7 @@ public static Object createObject(final String classname) throws ParseException
117
}
118
119
try {
120
- return cl.newInstance();
+ return cl.getConstructor().newInstance();
121
} catch (final Exception e) {
122
throw new ParseException(e.getClass().getName() + "; Unable to create an instance of: " + classname);
123
0 commit comments