5 Replies Latest reply on Feb 13, 2012 8:35 PM by navigateur

    Serious: Cannot transport custom object as HashMap key

    navigateur Newbie

      EDIT: I have a custom class which has an object of another class which has an int and a reference to another object of the same class, which is currently null. Upon returning e.g. a HashMap<CustomClass, String> via Errai RPC I get:


      java.lang.ClassCastException: java.lang.String cannot be cast to my.package.CustomClass (which is the parent class described above).


      Is this a problem in Errai or could I be doing something else wrong? If not, is it fixed in Errai 2.0? If not, is it something that can be quickly fixed?