You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/06/01 04:20:00 UTC
[jira] [Commented] (AMQ-8282) Convert .newInstance() references to
getConstructor().newInstance()
[ https://issues.apache.org/jira/browse/AMQ-8282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354788#comment-17354788 ]
Jean-Baptiste Onofré commented on AMQ-8282:
-------------------------------------------
AFAIR, I did some changes about this already. Probably some are missing ;)
> Convert .newInstance() references to getConstructor().newInstance()
> -------------------------------------------------------------------
>
> Key: AMQ-8282
> URL: https://issues.apache.org/jira/browse/AMQ-8282
> Project: ActiveMQ
> Issue Type: Task
> Reporter: Matt Pavlovich
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 5.17.0
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)