Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayDeque inaccessable (2.0.0) #61

Open
rendaw opened this issue Feb 7, 2021 · 2 comments
Open

ArrayDeque inaccessable (2.0.0) #61

rendaw opened this issue Feb 7, 2021 · 2 comments
Labels

Comments

@rendaw
Copy link

rendaw commented Feb 7, 2021

I'm not sure why and I might be wrong, but the following fails to compile:

public class ThingA {
  void somefunc() {
    new ArrayDeque<String>();
  }
}

produces the error property 'ArrayDeque' does not exist on type 'typeof util' from

/* Generated from Java with JSweet 2.4.0-SNAPSHOT - http://www.jsweet.org */
namespace jsweettest.moda {
    export class ThingA {
        somefunc() {
            new java.util.ArrayDeque<string>();
        }
    }
    ThingA["__class"] = "jsweettest.moda.ThingA";

}

I see ArrayDeque in the source jar bundle, so I don't think I'm using the wrong version.

I'm not sure of a workaround.

@lgrignon
Copy link
Collaborator

Please ensure your J4TS dependency is scope compile. The j4ts.d.ts should be included in TypeScript compilation command by JSweet

@lgrignon
Copy link
Collaborator

Note : please try with updated JSweet 3.1.0 / j4ts 2.1.0 (snapshots for now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants