Details

      Description

      Attempting to marshal the following @Portable object s results in java.lang.RuntimeException: java.lang.RuntimeException: no marshalling definition available for type:java.lang.Class at runtime. Class is partially emulated by GWT so it's reasonable to expect Class to be (in part) portable.

      I spoke to Christian Sadilek who would like to investigate potential workarounds to the root cause; being Class only has a private constructor. However since Class is pretty useless on the client anyway; for my purposes I'm happy to use class name instead.

      @Portable
      public class Smurf {
      
      private Map<String, Object> stuff = new HashMap<>();
      
      public void addStuff( final String key, final Object value ) {
      stuff.put( key, value );
      }
      
      }
      
      Smurf s = new Smurf();
      s.addStuff( "key", new String().getClass() );
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                csa Christian Sadilek
                Reporter:
                manstis Michael Anstis
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: