You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2022/03/23 18:13:00 UTC

[jira] [Closed] (OFBIZ-11994) deprecation warnings in build with Java 11

     [ https://issues.apache.org/jira/browse/OFBIZ-11994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-11994.
-----------------------------------
    Resolution: Information Provided

> deprecation warnings in build with Java 11
> ------------------------------------------
>
>                 Key: OFBIZ-11994
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11994
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk, Upcoming Branch
>            Reporter: Alex Bodnaru
>            Priority: Major
>              Labels: 11, Java, jdk11
>
> 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.20.1#820001)