Colin Alworth

Results 87 issues of Colin Alworth

A strict project without an `` statements on Query but with an `` on RequestFactory will fail to compile. Since `com.google.web.bindery.requestfactory.shared.gquery.PromiseRF` lives in the RequestFactory package and extends `com.google.gwt.query.client.plugins.deferred.Deferred.DeferredPromiseImpl`, when...

This is probably going to be tricky to get right, so it might be worth making this into a documentation bug, rather than a fault in the library. A GWT...

A specific example of this is `elemental2.dom.CustomEventInit`, which at least as of elemental2 1.1.0 is generic on `T`, but the factory method is raw: ``` @JsType(isNative = true, namespace =...

I'm experimenting with taking [Closure-annotated](https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler) JS (both hand-written and generated from TypeScript via [tsickle](https://github.com/angular/tsickle/)). I was surprised to discover that when the generator runs, it only emits jsinterop types that...

enhancement

Steps to repro - use an externs file with an enum that is referenced by a union type. Roughly: ``` /** * @enum {number} */ foo.bar.SomeEnum = { ONE: 0,...

(Discovered while testing #46) Given this JS, the expected behavior presently is that `_STATIC` will be appended to the `static` version since these would otherwise collide. Instead, we see a...

Given two members on a class, one static and one instance, one will be generated with a `_STATIC` suffix. That is, ``` Foo.noArgMethod = function() {}; Foo.prototype.noArgMethod = function() {};...

Example JS, as put in the externs/modules/modules.js file: ``` /** * @typedef {(string|number|boolean)} */ baz.structural; ``` Results in this stack trace: ``` Exception in thread "main" java.lang.UnsupportedOperationException at com.google.javascript.rhino.jstype.Property.getScope(Property.java:185) at...

Technically I did get this to work, but it seems awkward, and so I am probably using jsinterop-generator or bazel wrong, or both. I have a new git repo of...

ModelHelper.createGlobalJavaType always assumes that `window` is the correct name to use: ``` public static Type createGlobalJavaType(String packagePrefix, String globalScopeClassName) { Type type = new Type(NAMESPACE); type.setName(globalScopeClassName); type.setPackageName(packagePrefix); type.setNativeNamespace(GLOBAL_NAMESPACE); type.addAnnotation( builder()...