Alex Bodnaru created OFBIZ-11994:
------------------------------------
Summary: 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
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)