-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
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.
- blocks
-
FAI-487 Score Cards: Refactor (un)marshaller
- Backlog