For your purposes in the patch; use internal utility ArrayHelper.setLength.

Normally following is just one way of doing it:

interface NativeArray {
  @JsProperty void setLength(int length);
}

((NativeArray) someArray).setLength(42);


On Mon, Mar 7, 2016 at 7:53 PM, Michael Zhou <[email protected]>
wrote:

> I'm trying to set the length of a native JavaScript array represented as
> an int[] in Java. Is it currently possible in JsInterop to do so?
>
> https://gwt-review.googlesource.com/#/c/5771/16/user/super/com/google/gwt/emul/java/util/BitSet.java@134
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to