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

GwtExport should use interface name if present

XMLWordPrintable

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

      The @GWTExport annotation flags generation of J2CL binding boilerplate.

      Following the shift in POJO generation to extend interfaces the .native.js file fails Closure compilation as it attempts to reference a non-existent object.

      For example:-

      POJO

      @GWT3Export
      public class XCoordinates
          implements com.anstis.pmml.model.api.XCoordinates
      {
      ...
      

      Closure input

      goog.module('com.anstis.pmml.model.impl.v4_4.XCoordinates$impl');
      
      const com_anstis_pmml_model_api_XCoordinates = goog.require('com.anstis.pmml.model.api.XCoordinates$impl');
      ...
      /**
       * @implements {com_anstis_pmml_model_api_XCoordinates}
       */
      class XCoordinates extends j_l_Object {
      ...
      

      GWTExport codegen

      const _XCoordinates = com_anstis_pmml_model_impl_v4_4_XCoordinates;
      goog.exportSymbol('com.anstis.pmml.model.impl.v4_4.XCoordinates', _XCoordinates);
      goog.exportSymbol('com.anstis.pmml.model.impl.v4_4.XCoordinates.prototype.setNUMARRAY', XCoordinates.prototype.setNUMARRAY);
      goog.exportSymbol('com.anstis.pmml.model.impl.v4_4.XCoordinates.prototype.getExtension', XCoordinates.prototype.getExtension);
      goog.exportSymbol('com.anstis.pmml.model.impl.v4_4.XCoordinates.prototype.getNUMARRAY', XCoordinates.prototype.getNUMARRAY);
      

      The Closure input defines const com_anstis_pmml_model_api_XCoordinates = ... whereas the GWTExport codegen references const _XCoordinates = com_anstis_pmml_model_impl_v4_4_XCoordinates.

            manstis@redhat.com Michael Anstis
            manstis@redhat.com Michael Anstis
            Dominik Hanak Dominik Hanak
            Dominik Hanak Dominik Hanak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: