[
https://issues.apache.org/jira/browse/HBASE-20180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16400398#comment-16400398
]
Hudson commented on HBASE-20180:
--------------------------------
Results for branch master
[build #262 on
builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/master/262/]: (x)
*{color:red}-1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://builds.apache.org/job/HBase%20Nightly/job/master/262//General_Nightly_Build_Report/]
(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2)
report|https://builds.apache.org/job/HBase%20Nightly/job/master/262//JDK8_Nightly_Build_Report_(Hadoop2)/]
(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3)
report|https://builds.apache.org/job/HBase%20Nightly/job/master/262//JDK8_Nightly_Build_Report_(Hadoop3)/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
> Avoid Class::newInstance
> ------------------------
>
> Key: HBASE-20180
> URL: https://issues.apache.org/jira/browse/HBASE-20180
> Project: HBase
> Issue Type: Sub-task
> Reporter: Mike Drob
> Assignee: Mike Drob
> Priority: Major
> Labels: error-prone
> Fix For: 2.0.0
>
> Attachments: HBASE-20180.patch, HBASE-20180.v2.patch,
> HBASE-20180.v3.patch
>
>
> Class::newInstance is deprecated starting in Java 9 -
> https://bugs.openjdk.java.net/browse/JDK-6850612 - because it may throw
> undeclared checked exceptions. The suggested replacement is
> {{getDeclaredConstructor().newInstance()}}, which will wrap the checked
> exceptions in InvocationException.
> There's even an error-prone warning about it, we should promote that to error
> while we're fixing this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)