Coder Social home page Coder Social logo

gwt3-processors's Introduction

Hi My name is Dmitrii Tikhomirov

Software Engineer at Red Hat

  • ๐ŸŒย  I'm based in North Vancouver, Canada
  • โœ‰๏ธย  You can contact me at [email protected]

Skills

Java JavaScript PHP Perl HTML5 Oracle MySQL PostgreSQL

Socials

Badges

My GitHub Stats

treblereel's GitHub stats

Support Me

gwt3-processors's People

Contributors

treblereel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

manstis chenmins

gwt3-processors's Issues

GWT3Export does not work when annotation added by XMLMapper annotation processor

Following treblereel/mapper-xml#81 on XMLMapper I get a model class like the following:-

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "header",
    "miningBuildTask",
    "dataDictionary",
    "transformationDictionary",
    "model",
    "extension"
})
@XmlRootElement(name = "PMML")
@JsType
@GWT3Export
@XMLMapper
@Configuration(additionalAnnotation = {
    @Configuration.ConfigurationAnnotation(JsType.class),
    @Configuration.ConfigurationAnnotation(GWT3Export.class)
})
public class PMML {

    @XmlElement(name = "Header", required = true)
    protected Header header;
    ...
}

The important things to understand are:-

  • The class PMML is a DTO that has a (un)marshaller generated by the @XMLMapper annotation
  • The PMML DTO needs to be exposed through JsInterop and the boiler-plate J2CL @GWT3Export generated.

This worked fine.

However the generated (un)marshaller also needs exposing through JsInterop and J2CL boiler-plate generated.

This is why I now add the @Configuration annotations.

However when I attempt to J2CL compile the application I receive the following error:-

/home/manstis/workspaces/git/manstis/marshaller/marshaller-api/target/gwt3BuildCache/0.17-SNAPSHOT/marshaller-api-b8fb723b2f15496d22b830c894a5776cbc13fb79/closure-inputs/com/anstis/pmml/model/PMML_XMLMapperImpl.impl.java.js:64: 
Originally at:
/home/manstis/workspaces/git/manstis/marshaller/marshaller-api/target/gwt3BuildCache/0.17-SNAPSHOT/marshaller-api-b8fb723b2f15496d22b830c894a5776cbc13fb79/closure-inputs/com/anstis/pmml/model/PMML_XMLMapperImpl.native_js:1: ERROR - [JSC_UNDEFINED_VARIABLE] variable com_anstis_pmml_model_PMML_XMLMapperImpl is undeclared
  1| const _PMML_XMLMapperImpl = com_anstis_pmml_model_PMML_XMLMapperImpl
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/home/manstis/workspaces/git/manstis/marshaller/marshaller-api/target/gwt3BuildCache/0.17-SNAPSHOT/marshaller-api-b8fb723b2f15496d22b830c894a5776cbc13fb79/closure-inputs/com/anstis/pmml/model/PMML_XMLMapperImpl.impl.java.js:66: 
Originally at:
/home/manstis/workspaces/git/manstis/marshaller/marshaller-api/target/gwt3BuildCache/0.17-SNAPSHOT/marshaller-api-b8fb723b2f15496d22b830c894a5776cbc13fb79/closure-inputs/com/anstis/pmml/model/PMML_XMLMapperImpl.native_js:3: ERROR - [JSC_UNDEFINED_VARIABLE] variable PMML_XMLMapperImpl is undeclared
  3| goog.exportProperty(_PMML_XMLMapperImpl, 'INSTANCE', PMML_XMLMapperImpl.$static_INSTANCE__com_anstis_pmml_model_PMML_XMLMapperImpl);
     ^^^^^^^^^^^^^^^^^^

2 error(s), 0 warning(s)

The files are in the following ZIP:-
PMML_XMLMapperImpl.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.