Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1477

Modernize ExtensionLoader to avoid deprecated Class API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0, 2.1.1
    • 2.2.0
    • None
    • None

    Description

      Right now, ExtensionLoader calls

      extClazz.newInstance();
      

      This call is deprecated in newer JDK versions. It is advised to use

      return (T) extClazz.getDeclaredConstructor().newInstance();
      

      instead in this case.

      Aim(s):

      • Remove the deprecated form in exchange for the recommended one.

      Attachments

        Activity

          People

            mawiesne Martin Wiesner
            mawiesne Martin Wiesner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: