gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GORA-536) Avoid calling Class#newInstance
Date Tue, 22 May 2018 12:29:00 GMT

    [ https://issues.apache.org/jira/browse/GORA-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16483866#comment-16483866
] 

Hudson commented on GORA-536:
-----------------------------

FAILURE: Integrated in Jenkins build gora-trunk #1749 (See [https://builds.apache.org/job/gora-trunk/1749/])
GORA-536: Avoid calling Class#newInstance (carlosrmng: rev a8398651d0b75fe9f161496b266b43d6382399b8)
* (edit) gora-goraci/src/main/java/org/apache/gora/goraci/rackspace/RackspaceOrchestration.java
* (edit) gora-core/src/main/java/org/apache/gora/persistency/impl/BeanFactoryImpl.java
* (edit) gora-infinispan/src/main/java/org/apache/gora/infinispan/store/InfinispanClient.java
* (edit) gora-accumulo/src/main/java/org/apache/gora/accumulo/store/AccumuloStore.java
* (edit) gora-infinispan/src/main/java/org/apache/gora/infinispan/store/InfinispanStore.java
* (edit) gora-goraci/src/main/java/org/apache/gora/goraci/chef/ChefSoftwareProvisioning.java
* (edit) gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
* (edit) gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
* (edit) gora-core/src/main/java/org/apache/gora/persistency/ws/impl/BeanFactoryWSImpl.java
* (edit) gora-dynamodb/src/main/java/org/apache/gora/dynamodb/store/DynamoDBNativeStore.java


> Avoid calling Class#newInstance
> -------------------------------
>
>                 Key: GORA-536
>                 URL: https://issues.apache.org/jira/browse/GORA-536
>             Project: Apache Gora
>          Issue Type: Task
>            Reporter: Ted Yu
>            Assignee: Carlos Muñoz
>            Priority: Minor
>             Fix For: 0.9
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message