Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-8282

Convert .newInstance() references to getConstructor().newInstance()

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.17.0
    • None
    • None

    Description

      Class.newInstance() is deprecated the correct replacement is .getConstructors().newInstance()

      This introduces a new exception to be added to some method signatures.

      Approach:
      1. Add the exception where it makes sense
      2. Wrap it where we must

      Attachments

        Activity

          People

            mattrpav Matt Pavlovich
            mattrpav Matt Pavlovich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h