You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Tim McCormack (JIRA)" <ji...@apache.org> on 2010/01/12 23:23:54 UTC

[jira] Created: (CXF-2615) Generated serialization JS should not pretend to have "block scope"

Generated serialization JS should not pretend to have "block scope"
-------------------------------------------------------------------

                 Key: CXF-2615
                 URL: https://issues.apache.org/jira/browse/CXF-2615
             Project: CXF
          Issue Type: Improvement
            Reporter: Tim McCormack
            Priority: Minor


org.apache.cxf.javascript.JavascriptUtils generates serializer code in JS that surrounds individual serializations with block scope. This is allegedly (according to a code comment) to provide a "block for local variables", but JS does not actually support block scope:

https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Block_Statement

Instead, all of these chunks of code run in the same scope. I am unsure as to whether this attempt at keeping a clean scope has any effect on extant code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.