Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5640

Generated interfaces should extend base interfaces

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Authoring Tooling
    • None
    • False
    • False
    • Undefined

      We have code generation.

      Interfaces and concrete POJOs are created from XSD using JAXB Maven plugins.

      The interfaces need to extend base interfaces to make the API work correctly.

      com.anstis.pmml.model.api.Scorecard should extend com.anstis.pmml.model.api.IModel however the org.jvnet.jaxb2_commons:jaxb2-basics JAXB plugin only sets classes as extending interfaces defined in the XJC binding file.

      We can only generate com.anstis.pmml.model.impl.v4_4.Scorecard implements com.anstis.pmml.model.api.IModel. This means where we have com.anstis.pmml.model.api.PMML#models as a collection of com.anstis.pmml.model.api.IModel we cannot add a com.anstis.pmml.model.api.Scorecard to it but must add the concrete com.anstis.pmml.model.impl.v4_4.Scorecard.

      The org.jvnet.jaxb2_commons:jaxb2-basics needs fixing to also generate extends for interfaces. However the plugin has moved onto JAXB 3.x and Jakarta JEE libraries meaning we need to move our code generation too.

            eignatow Eder Ignatowicz
            manstis@redhat.com Michael Anstis
            Dominik Hanak Dominik Hanak
            Dominik Hanak Dominik Hanak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: