Richard Kennard wrote:
> Reinier,
>
> Thanks for your quick response.
>
> I'm a bit confused, though. If...
>
>> GWT compresses the java identifier of any method or field down to a very
>> short random collection of symbols
>
> ...then how come I can still do...
>
> [email protected]::myMethod()();
>
> ...and even...
>
> alert( obj[ '@org.foo.Foo::myMethod()' ] );
>
> ...is there some kind of one-way mapping going on?
>
> Regards,
>
> Richard.
Hi Richard
The name mangling is only done after all the JavaScript has been generated. So
the code you write in
JSNI is mangled along with all the other code.
So:
The GWT compiler compiles all the Java code with the long format names
(including all the JSNI).
And once it's all done, mangles all the names into randomness in order to
decrease the size (also
removing useless whitespace and such in the process).
Hope that helps a bit ;)
Regards.
Jason
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---