#42 dirty Object.prototype - solution proposal


Here I will submit my changed files and patches. The issue is well described in http://groups.google.com/group/java2script/browse_thread/thread/3d6deb9c3c0a0cda


  • Sebastián Gurin

    theTypeVisitor corrected so "new Object()" java expression correctly translated to "new J2sObject()" javascript

  • Sebastián Gurin

    I attached my patches to 3.5 sources.

    What I have done is to define a Object subclass named J2sObject and change each reference of Object to J2sObject in files that conforms j2slib.js . Also make a little modification in the compiler as explained in the group thread.

    Note: In ClassLoader it seems that some Object instances are used like Maps. In those cases, it would be more convenient to use Object than J2sObejct (I didn't change this)

  • Sebastián Gurin

    • status: open --> open-fixed
  • Sebastián Gurin

    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks