[
https://issues.apache.org/jira/browse/OPENNLP-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697086#comment-17697086
]
ASF GitHub Bot commented on OPENNLP-1477:
-----------------------------------------
mawiesne merged PR #513:
URL: https://github.com/apache/opennlp/pull/513
> Modernize ExtensionLoader to avoid deprecated Class API
> -------------------------------------------------------
>
> Key: OPENNLP-1477
> URL: https://issues.apache.org/jira/browse/OPENNLP-1477
> Project: OpenNLP
> Issue Type: Improvement
> Affects Versions: 2.1.0, 2.1.1
> Reporter: Martin Wiesner
> Assignee: Martin Wiesner
> Priority: Minor
> Fix For: 2.1.2
>
>
> Right now, {{ExtensionLoader}} calls
> {code:java}
> extClazz.newInstance();
> {code}
> This call is deprecated in newer JDK versions. It is advised to use
> {code:java}
> return (T) extClazz.getDeclaredConstructor().newInstance();
> {code}
> instead in this case.
> Aim(s):
> * Remove the deprecated form in exchange for the recommended one.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)