Not really; GWT compresses the java identifier of any method or field
down to a very short random collection of symbols. For example:

com.google.gwt.user.ui.Label#setText(String)

becomes:

t8vb

(Actually, every compilation run will result in different mangled
names). Set your GWT compiler to -style detailed and you'll see an
enormous size difference, pretty much all down to mangling the names.

Reflection doesn't work in GWT. Figure out a way to do what you want
to do without it.

On Dec 30, 6:00 am, Richard Kennard <[email protected]>
wrote:
> Dear All,
>
> First, thanks for all your hard work on GWT. It really is a fantastic
> framework!
>
> Is there a reason why GWT-compiled JavaScript objects are not
> 'reflectable' like regular JavaScript objects are? When I do (in JSNI
> JavaScript):
>
> for( var s in obj )
> {
>    alert( obj[s] );
>
> }
>
> I don't see any properties or actions for GWT-compiled objects, but I
> do for regular JavaScript objects. I don't much understand the 'var s
> in obj' technique, but it seems it should be able to reflect GWT
> objects? For example, when I do...
>
>    alert( obj[ '[email protected]::myMethod()' ] );
>
> ...then I CAN reflect the method okay?
>
> Regards,
>
> Richard.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to