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

Lewis John McGibbney commented on GORA-681:
-------------------------------------------


{code:java}
Error:  Forbidden method invocation: java.lang.Integer#<init>(int) [Deprecated 
in Java 11]
Error:    in org.apache.gora.pig.util.PersistentUtils (PersistentUtils.java:104)
Error:  Forbidden method invocation: java.lang.Class#newInstance() [Deprecated 
in Java 11]
Error:    in org.apache.gora.pig.GoraStorage (GoraStorage.java:301)
Error:  Forbidden method invocation: java.lang.Class#newInstance() [Deprecated 
in Java 11]
Error:    in org.apache.gora.pig.GoraStorage (GoraStorage.java:687)
Error:  Scanned 13 class file(s) for forbidden API invocations (in 0.16s), 3 
error(s).
{code}


> Address use of deprectated APIs in gora-pig
> -------------------------------------------
>
>                 Key: GORA-681
>                 URL: https://issues.apache.org/jira/browse/GORA-681
>             Project: Apache Gora
>          Issue Type: Improvement
>          Components: gora-pig
>    Affects Versions: 0.9
>            Reporter: Lewis John McGibbney
>            Priority: Major
>             Fix For: 1.0
>
>
> {code:bash}
>  Warning:  
> /home/runner/work/gora/gora/gora-pig/src/main/java/org/apache/gora/pig/util/PersistentUtils.java:[104,27]
>  [deprecation] Integer(int) in Integer has been deprecated
> Warning:  
> /home/runner/work/gora/gora/gora-pig/src/main/java/org/apache/gora/pig/GoraStorage.java:[301,48]
>  [deprecation] newInstance() in Class has been deprecated
>   where T is a type-variable:
>     T extends Object declared in class Class
> Warning:  
> /home/runner/work/gora/gora/gora-pig/src/main/java/org/apache/gora/pig/GoraStorage.java:[687,114]
>  [deprecation] newInstance() in Class has been deprecated
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to