You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
What do I have to do to get gwtc to translate something like: String[] foo = (String[])bar.clone();?
gwtc ouputs: [ERROR] Line nn: Cannot invoke clone() on the array type String[]
I understand that clone is implemented by the java compiler for all arrays and there isn't a method on a java class that can be emulated. I tried a couple of things to get this to work by emulation but gwtc barfs with other errors.
Is the only work around to change the code to System.arraycopy and then supply a js emulation for arraycopy?