Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4270490
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:18:47+00:00 2026-05-21T07:18:47+00:00

I am not JS developer but I am trying to understand the way the

  • 0

I am not JS developer but I am trying to understand the way the java code converted to JS by GWT compiler do find the cause of memory increase in our large application .

Some time i see some variable with assigened to ” _ ” for example

_ = com_google_gwt_event_shared_GwtEvent.prototype = new java_lang_Object;

These kind of assignments are in many place in the code . What does it means ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:18:48+00:00Added an answer on May 21, 2026 at 7:18 am

    The GWT compiler models the Java type hierarchy using JavaScript prototype chains. The _ symbol is used as a global temporary variable by the compiler and short JSNI methods. In the top scope of the generated script, you should see something like

    // Define the JS constructor(s) for the type
    function com___GwtEvent() {}
    // Inherit methods from the supertype by prototype chain
    _ = com___GwtEvent.prototype = new java_lang_Object;
    // Attach polymorphically-dispatched methods to the new type
    _.someInstanceMethod = function(a,b,c){.....}
    // Static-dispatch methods
    function $someOtherMethod(this$static, d, e) {...}
    

    Where you see methods that have a this$static parameter, the compiler has deduced that the Java expression instance.someOtherMethod() is not polymorphic (possibly via type-tightening) and avoids the overhead of the intermediate symbol lookup at runtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand the code of some project which is not properly
I'm not a PHP developer but i've seen in a couple of places that
I'm a long time developer but not very experienced with DNS. Here's my problem:
Im not a developer (not a proper one) but always up for an excuse
I am not a developer, but I have spent years testing and managing software
This is probably a simple question but I am not an ASP.NET developer and
I'm not sure if this is possible (complete non-flash developer speaking), but we have
I am not a DBA by any means, but being a web developer means
It's not hard to find developers who think cursors are gauche but I am
I am trying to set an event in JavaScript but it is not really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.