nifkuza / gwtquery

Automatically exported from code.google.com/p/gwtquery
MIT License
0 stars 0 forks source link

JsonBuilder should handle array of primitives #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
imagine we have this interface

public interface Account extends JsonBuilder{

   public byte[] getPasswordHash();
   public void setPassword(byte[] b);
}

When GWT compile we receive this error :
[ERROR] Line 25:  The method getArrayBase(String, T[], Class<T>) in the type 
JsonBuilderBase<Account_JsonBuilder> is not applicable for the arguments 
(String, byte[], Class<Byte>)
      [ERROR] Line 46:  The method setArrayBase(String, T[]) in the type JsonBuilderBase<Account_JsonBuilder> is not applicable for the arguments (String, byte[])

Indeed we manage getter/setter working with array by delegating to the method 
set/getArrayBase() of JsonBuilderBase. This method use Generics and Generics 
don't support primitives type

Original issue reported on code.google.com by julien.d...@gmail.com on 20 Jun 2012 at 9:55

GoogleCodeExporter commented 9 years ago
Thanks for reporting. I've migrated this issue to github : 
https://github.com/gwtquery/gwtquery/issues/173
Please follow the issue there.

Original comment by julien.d...@gmail.com on 15 Jul 2013 at 4:08