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

Jacques Le Roux commented on OFBIZ-11994:
-----------------------------------------

Hi Alex,

I guess, you know we only officially support Java 8 for now (see OFBIZ-10757)? 
Can be useful later though...

> deprecation warnings in build
> -----------------------------
>
>                 Key: OFBIZ-11994
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11994
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Alex Bodnaru
>            Priority: Major
>
> i'm getting these warnings when building with openjdk 11, i think
> /apache/ofbiz/security/CsrfUtil.java:73: warning: [deprecation] newInstance() 
> in Class has been deprecated
>  setStrategy((ICsrfDefenseStrategy) c.newInstance());
>  ^
>  where T is a type-variable:
>  T extends Object declared in class Class
> /usr/local/src/ofbiz/trunk/ofbiz-framework/plugins/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/openapi/OFBizOpenApiReader.java:211:
>  warning: [deprecation] newInstance() in Class has been deprecated
>  schema = (Schema<?>) schemaClass.newInstance();
>  ^
>  where T is a type-variable:
>  T extends Object declared in class Class
> /usr/local/src/ofbiz/trunk/ofbiz-framework/plugins/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/openapi/OFBizOpenApiReader.java:234:
>  warning: [deprecation] newInstance() in Class has been deprecated
>  schema = (Schema<?>) schemaClass.newInstance();
>  ^
>  where T is a type-variable:
>  T extends Object declared in class Class
>  



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

Reply via email to