XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • Trunk, Upcoming Branch
    • None
    • ALL COMPONENTS

    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

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

            Dates

              Created:
              Updated:
              Resolved: