Hi Mike, I think I see the problem. In Hosted mode, java is evaluating the Object[] as instanceof Serializable since per java spec every java array implements Serializable interface. Production mode must be letting this slip by. So actually looks like an inconsistency between compiled javascript mode and java spec.
I will verify, but the fix should be easy in soafaces to move the the check for instanceof Object[] earlier in the if else chain. I will work on a bug fix for soafaces. Thanks, Sam On Oct 30, 4:12 pm, mike_mac <michael.mac...@gmail.com> wrote: > On further investigation this seems to be a hosted mode issue and > different behaviour of instanceof between hosted mode and complied > versions of the code. > > Passing an Object[] called obj that has two objects that implement > IsSerializable > results in "obj instanceof Serializable" returning true in hosted mode > but false in the compiled Javascript. > > See > org.soafaces.services.client.rpcGenericDataUtil.createGenericDataWrapper > (Object obj) in soafaces source. > > Anyone have a logical explanation why hosted mode thinks its a > Serializable object ? Object is not Serializable right so neither > should Object[] right ? > > On Oct 30, 7:04 pm, mike_mac <michael.mac...@gmail.com> wrote: > > >http://code.google.com/p/soafaces/ > > > I've tried to get it working but it seems to be broken ... it claims > > to allow passing of Object[] but when I try to use it (Object[] objs = > > new Object[2]) I get a Serialization exception which seems to be from > > generated code ... > > > com.google.gwt.user.client.rpc.SerializationException: > > [Ljava.lang.Object; > > at > > org.soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.raiseSerializationException > > (transient > > source for > > soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer:3133) > > at > > soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.serialize > > (Native Method) > > > It does work if I pass a single argument, anyone have any experience > > using this ? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---