Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11994

deprecation warnings in build with Java 11

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: ALL COMPONENTS
    • Labels:

      Description

      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

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexbodn Alex Bodnaru
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: